Posts by Bruno Moraes • 71 points
1 post
-
7
votes7
answers87300
viewsA: How to validate with regex a string containing only letters, whitespace and accented letters?
If the last name is required and there is only one field to be validated, you can use the following regex: /\b[A-Za-zÀ-ú][A-Za-zÀ-ú]+,?\s[A-Za-zÀ-ú][A-Za-zÀ-ú]{2,19}\b/gi It validates only letters,…