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

174
Vistas
REGEX find words in upper case and words followed by a single special character

Could someone help me. I'm trying to parse this string using regex in javascript:

BMB-001 RING/MESH T-Bar Track T-BAR W/

My Goal is to match RING, MESH, T-BAR and W/ only.

I'm currently using this regex: (\b[^\d\W][A-Z-'\/]['A-Z]+|\b[A-Z][-\/$]), But the result matched BMB, RING, MESH, T-B,T-BAR and W/

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use

\b[A-Z]+(?:[-'][A-Z]+)*(?:\/|(?!\S))

See the regex demo. Details:

  • \b - a word boundary
  • [A-Z]+ - one or more uppercase letters
  • (?:[-'][A-Z]+)* - zero or more occurrences of - or ' and one or more uppercase letters
  • (?:\/|(?!\S)) - a / or a location not immediately followed with a non-whitespace char.
about 4 years ago · Juan Pablo Isaza 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