Multilingual email address validation with jQuery and RegEx

前端 未结 2 844
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 08:22

I have some jQuery and RegEx code that works great validating email addresses...as long as the address is based on simple Latin characters. However, when we plu

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-27 08:40

    Take a look at the XRegExp library. It is a Javascript library that implements a Unicode-aware regex engine, including character classes like \p{Letter} that can be used to match letters outside the usual ASCII range.

提交回复
热议问题