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

136
Vistas
Regex must have letters only and one dot

I am trying to build a regex that must contain letters only and one dot.

There is a restriction: the dot cannot be placed in beginning or the end.

Example:

abc.difference

I tried to use

^[a-zA-z]*(\d*\.\d*)[a-zA-z]*$
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

f the dot can go missing in the input string, you can use

/^[A-Za-z]+(?:\.[A-Za-z]+)?$/

If the dot is obligatory:

/^[A-Za-z]+\.[A-Za-z]+$/

Details:

  • ^ - start of string
  • [A-Za-z]+ - one or more letter chars
  • (?:\.[A-Za-z]+)? - an optional occurrence of
    • \. - a dot
    • [A-Za-z]+ - one or more alpha chars
  • $ - end of string.
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