The regular expression I use for email address validation is
which I think is pretty standard but it doesn't support foreign characters such as
Can anyone recommend a better expression?
Note I have come across this:
which seems to suggest using
which appears more flexible but apparently does allow for example test@hello..com
Can someone tell me what the above expression is actually doing?
I know there is also this http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
which obviously seems like overkill (and interestingly doesn't seem to allow some of the foreign character examples the above expression does).
Also I'm using .net which may impact this as some of the "regex" testing sites seemed to think my original regex expression did actually allow my foreign example email address, but my ,net aspx page certainly doesn't allow it.