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

199
Vistas
Regex: mask characters from template in the string to end of line

I need to retrieve part of string which starts from "Notes:" mask and until end of line (\n) character. There are could be any characters in between.

For example, something like:

Notes: Advise ETA to shipper and deliver direct

I'm trying to use following expression:

/[\w]*Notes[\s]*:[\s]*(?<notes>[.\S\s]*)$/is

However it doesn't stop at the end of line.

Could you please suggest me how can I do this

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

After few more time of investigation I was able to do it with following regex:

/[\w]*Notes[\s]*:[\s]*(?<notes>[a-zA-Z0-9 \t!"\#$%&'()*+,\-.\/:;<=>?@\[\\\]^_‘{|}~]*)/mi
about 4 years ago · Santiago Gelvez Denunciar
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