I currently have this in an old system I'm working on:
/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/
It's checking for usernames. I've imported a few email address as username, and these accounts cannot be validated.
How can I modify the above to allow for email addresses? Thanks.