What is the regexp to match a set of email addresses within foo.bar like
name@(subdomain.)*foo.bar
I'm using
[a-z][^ ]*@([a-z][a-z0-9_-]*\.)*foo\.bar
i.e., name starts with an alpha and contains anything but white-space,
and subdomain starts with an alpha and contains only alphas, numerals,
and underscores & dashes.
But I suspect my assumptions are inaccurate regarding what is an
RFC-compliant, legitimate, email address.
Can someone supply a more appropriate regexp for matching email
addresses within foo.bar and her subdomains?
Thank you for any assistance.
Best regards,
John Ruckstuhl