Match all email addresses
Email: user@example.com or admin@site.org
Pattern: [a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}
Flags: g
Matches: user@example.com, admin@site.orgWrite and test regular expressions against sample text with live highlights.
The result will appear here.
Was this tool useful?
Regular expressions are patterns that describe sets of strings. They are used to search, validate and transform text in virtually every programming language. Testing a regex interactively against sample input is the fastest way to develop and debug them.
This tester uses the JavaScript regex engine (ECMA-262). The supported syntax is identical to what you would use in a browser or Node.js application, so what works here will work in your code.
Email: user@example.com or admin@site.org
Pattern: [a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}
Flags: g
Matches: user@example.com, admin@site.org