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

Java 3D LWJGL collision -

methods - python can't use function in submodule -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -