<script> let res = `Paris, France Marseille, France Cagnes-sur-Mer, France Vũng Tàu, Ba Ria - Vung Tau, Vietnam итл.` var regexp = res.match(/^[^,]+/mig); document.write(regexp.join('<br>')) </script>