Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!