December 2014

Regex (Regular Expression) to find the username of an email address


 Given the email address\@ finds username@


This only works if the email address is on it’s own line or if your using a regex on a field. I used it in Sublime Text to find the "username@" part of email addresses so that I could remove them and be left with only the domains.