I don't really understand regular expressions. This is the one I'm working with:
^[a-zA-Z][\w\.-][a-zA-Z0-9]@[a-zA-Z0-9][\w\.-][a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$
So, please help me break it down.
^[a-zA-Z][\w\.-]*
I know that ^ means start with, and that the * means 0 or more instances. I get that [a-zA-Z] means any letter in the alphabet, but what's the other cluster and what do the two sets of brackets next to each other mean?
Nevermind, figured it out.
3GET
neat, wgot
if that's supposed to match an email address, there's plenty of perfectly valid addresses that won't match it. fyi.
The futility of matching valid email addresses using regexps is aptly demonstrated by this supposedly correct one: