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

167
Vistas
Jquery phone number validation start from+30

** Jquery phone number validation ** Jquery phone number validation using regular expression.

valid phone number:- +30344343434, ragex not working and error show:- Uncaught SyntaxError: Invalid regular expression: /^(+30)[0-9]{9}$/: Nothing to repeat

$.validator.addMethod("PhoneValidation", (function(e) {
        let regex =  /^(+30)[0-9]{9}$/.test(e);
        return(regex);
    }), PHONE_VALIDATE);

suggest valid regex.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can try this

$.validator.addMethod("PhoneValidation", function (value) {
       return /^(\+30)(30|31|32|33|34|35|36|37|38|39)[0-9]{7}$/.test(value);
}, "Please enter valid number.");

put \ before starting +30 in the first bracket And in the second bracket, put pair with 3 which you want to validate

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