I've got a regular expression that I am using to check against a string to see if it an email address:
@"^((([\w]+\.[\w]+)+)|([\w]+))@(([\w]+\.)+)([A-Za-z]{1,3})$" This works fine for all the email addresses I've tested, provided the bit before '@' is at least four characters long.
Works:
[email protected] Doesn't work:
[email protected] How can I change the regex to allow prefixes of less than 4 characters??