Regex Tester
Test and debug regular expressions in real-time. See matches highlighted and groups extracted!
//g
Enter a pattern and test string to see matches
Features
- Live pattern matching
- Highlight matches
- Flag toggles (g, i, m, s)
- Show match groups
- Common pattern templates
- Copy regex syntax
How to Use
- 1Enter your regex pattern
- 2Toggle flags as needed
- 3Paste text to test against
- 4View highlighted matches below
Frequently Asked Questions
What are regex flags?
Flags modify how the pattern matches. g=global (all matches), i=case insensitive, m=multiline, s=dotall.
How do I escape special characters?
Use backslash: \. \* \+ \? \[ \] \( \) \{ \} \^ \$ \| \\
What are capture groups?
Parentheses () create groups. Named groups: (?<name>pattern). Access matched text separately.
Why isn't my pattern matching?
Check for typos, ensure flags are correct, and remember special chars need escaping.