Regex Tester
Free
No sign-up
Runs in your browser
Test a JavaScript regular expression and see every match.
How to use
- 1 Type your regular expression in Pattern, without the surrounding slashes.
- 2 Paste the text to search in. Matches update as you type.
- 3 Each match shows its position and its groups. Results use JavaScript rules, the same as in browsers and Node.js.
Example
Input
Pattern: (\w+)@(\w+)\.com Text: mail asha@example.com
Output
Match 1 at position 5: "asha@example.com" Group 1: "asha" Group 2: "example"