🔎Regex Tester

← Back to tools

Test regular expressions with flags, see matches and groups, and try replacements. All processing runs locally.

⚙️Input & Options
Pattern
Flags:
Replace with (optional)
🧪Test Text
🧾Matches & Groups
Count: 0
Groups (first match)
👀Preview
Highlighted
Replace preview
How this tool works
1
Enter a pattern
Write the regex pattern to test.
2
Select flags
Toggle g, i, m, s, u, y to control behavior.
3
Paste test text
Provide sample input to match against.
4
Review matches
See all matches and capture groups immediately.
5
Preview replacements
Try replacements using $1, $2, and more.