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

138
Vistas
Regex Match Phrase with Different Symbols

I have here a phrase AAC Barcode Description that regex should match.

The problem is sometimes I have underscore, symbols etc... like

  • AAC Barcode + Descriptions
  • AAC Barcode + Description
  • AAC Barcode & Descriptions
  • AAC Barcode and Description

REGEX

\b\w*AAC Barcode Description\w*\b
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use

\w*AAC Barcode(?:\s+and\s+|\W+)Description\w*

See the regex demo. Note that word boundaries are redundant in this case when used with \w*s. If you want to match this string is a whole word, you need to remove \w*s and keep \bs:

\bAAC Barcode(?:\s+and\s+|\W+)Description\b

Details:

  • \w* - zero or more word chars
  • AAC Barcode - a fixed string
  • (?:\s+and\s+|\W+) - a non-capturing group matching either and enclosed with one or more whitespaces or one or more non-word chars
  • Description - a fixed string
  • \w* - zero or more word chars
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