Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
I am not able to split sentence Correctly using regex in JS the dot in between the sentences must not replace original sentence

This the sentence i am using to separate splitting it by a dot

transcript = {'The latest survey of U.S. consumers from 451 Research indicates iPhone customer satisfaction of 98% for iPhone, and our active installed base of iPhones reached a new all-time high'}    


const substrings = transcript.split(/[.!]+(?!\d)\s*|\n+\s*/);

The output I am getting

substring = {'The latest survey of U.S','consumers from 451 Research indicates iPhone customer satisfaction of 98% for iPhone, and our active installed base of iPhones reached a new all-time high.'}

The ouput is wrong the sentence should not be separated according to the regex but because of "U.S."

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda