“Email address” is one of the patterns that you can select on the Match panel. Use this pattern to make a field match an email address. You can set the pattern to allow any email address, or only email addresses for specific users or specific domains.
This example shows how you can use the “email” pattern to look for email addresses. You can find this example as “Pattern: email (any)” in the RegexMagic library.
support@regexmagic.com sales@regexmagic.com
\b[!#$%&'*+./0-9=?_`a-z{|}~^-]+@[.0-9a-z-]+\.[a-z]{2,63}\b
Required options: Case insensitive.
Unused options: Exact spacing; Dot doesn’t match line breaks; ^$ don’t match at line breaks; Numbered capture.
support@regexmagic.com sales@regexmagic.com
Generating a regex that matches any email address is trivial with RegexMagic. Then again, picking such a regex from an online library of regular expressions is trivial too. What you can do with RegexMagic’s email pattern that you can’t do with copy-and-paste from the web is to generate a regex that matches specific email addresses.
This second example continues from the one above. It shows how you can use the “email” pattern to look for specific email addresses. You can find this example as “Pattern: email (specific)” in the RegexMagic library.
\bsupport@[.0-9a-z-]+\.com\b
Required options: Case insensitive.
Unused options: Exact spacing; Dot doesn’t match line breaks; ^$ don’t match at line breaks; Numbered capture.
support@regexmagic.com sales@regexmagic.com