Regex For International Email Addresses (Javascript) -


right now, trying international email addresses validate... right regex works charm email addresses:

/^[_a-za-z0-9-]+(\.[_a-za-z0-9-]+)*@[a-za-z0-9-]+(\.[a-za-z0-9-]+)*(\.[a-za-z]{2,4})$/ 

however, international email address this: amartiñez@yahoo.com not pass validation. how can change above regex make pass?

include spanish charset regex

^[_a-za-záéíñóúüÁÉÍÑÓÚÜ0-9-]+(\.[_a-za-záéíñóúüÁÉÍÑÓÚÜ0-9-]+)*@[a-za-z0-9-]+(\.[a-za-z0-9-]+)*(\.[a-za-z]{2,4})$ 

demo

source: interesting character classes


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -