Regex Tester
Test JavaScript regular expressions against your text, see every match with numbered and named groups, and preview replacements.
- Local calculation
- The result is calculated in your browser.
- Private by default
- Nothing you enter leaves your browser.
2 matches
- #1 at 0: ana@example.comGroups: $1="ana", $2="example"
- #2 at 17: bruno@test.comGroups: $1="bruno", $2="test"
Use $1, $2 or $<name> to insert groups.
How it works
Your pattern runs with the browser's own JavaScript RegExp engine, so results match what your code will do. Matches, their positions and capture groups update as you type.
The replacement field accepts $1, $2 and $<name> references to show the text after a String.replace call.
Related tools
Text Diff
Compare two versions of a text line by line and see exactly which lines were added or removed, without uploading anything.
Split Text
Split text by any delimiter, such as commas, semicolons or new lines, and get each part on its own line, ready to copy.
Remove Duplicate Lines
Remove repeated lines from a list while keeping the original order, with options to ignore case, trim spaces and drop empty lines.