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

86
Views
Matching exact input with a Regular Expression

I'm trying to contruct a regexp to find an exact match to an input string of characters.

For example...

User inputs NC (case insensitive if possible), and their input is saved as the var old

var regexp = new RegExp(old, "gi");

How would I construct that RegExp to look for exactly old as it's input...so...I wanted to find just NC, but I don't want it to find the word "since" just NC with nothing else around it.

I've never been good with Regular Expressions, and I'm having a bit of a hard time with this one. Thanks for any help!

about 4 years ago · Juan Pablo Isaza
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!