Hi all, I have a regular expression that is validating email addresses. Unfortunately it seems my expression is rejecting those with two-letters in the domain name extension, for example “myname@domain.co.uk” gets rejected.
Here is the expression I currently have:
Dim pattern As String = "^[\\w\\.-]+@[\\w-]+\\.[a-zA-Z][a-zA-Z][a-zA-Z]?$"
I’ve been playing with this but unfortunately I just don’t have as strong a grasp of regex’s as I should.
Any suggestions on this?