Loading tool…
Write a regular expression and test it against sample text in real time. See every match, its position and any capture groups instantly.
Loading tool…
g or i); or pick a ready-made one from Common patterns.Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
Enter a pattern and flags, then paste text to test. Matches are listed as you type, including the matched substring, its index and the contents of each capture group.
Use flags like g (global, find all matches), i (case-insensitive), m (multiline) and s (dotall). This tool uses the JavaScript regex engine.
Parentheses create capture groups. The tester shows each group's value per match, which is invaluable for extracting structured data from text.