Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda