var mailformat = /^\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,3})+$/;
Be aware that this RegExp will mark a lot of valid email addresses as invalid (e.g. on .info domains)
3 Likes
An excellent visual explanation of what is happening in that regex is to be found at
2 Likes
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.