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

166
Vistas
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 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