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

165
Views
how to negate or escape from é in the giving regex?

I have a string with the value Québec and I want not to match é word from giving regex. In a given regex é word it getting matched I want to escape from this word and it should go inside the else loop. the output should "be it is not matched" how it should be done? if I have banned word regex that is const regex = new RegExp("^[^é]*$") how can I add inside the const regex = new RegExp("[^\u0021-\u007A \u014D ]","\gm")

I want to join these 2 regex in order to have one for checking the special character

const regex = new RegExp("[^\u0021-\u007A \u014D ]","\gm")
var str ="Québec"
console.log(regex,str);
if (regex.test(str)){
   console.log("it is matched");
}else{
    console.log("it is not matched")
 }
about 4 years ago · Santiago Gelvez
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!