Created
January 7, 2025 16:03
-
-
Save Klerith/e0cf87e1df88853e98290e12b5b00570 to your computer and use it in GitHub Desktop.
Expresiones regulares para validar elementos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static namePattern = '([a-zA-Z]+) ([a-zA-Z]+)'; | |
| static emailPattern = '^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$'; | |
| static notOnlySpacesPattern = '^[a-zA-Z0-9]+$'; |
danielchirinos
commented
May 14, 2025
Falto agregar los caracteres ^$ en el namePattern
Falto agregar los caracteres ^$ en el namePattern
excelente, también me preguntaba porque no podía controlar ese error
Muchas gracias, porfe.
Esa es la que le cae a Fernando, para ponerlo a "PARIR" a uno... Juaz juaz juaz juaz.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment