Regex Tester
Test regular expressions with live match highlighting and detailed results
/
/
Flags:
How to Use the Regex Tester
Type your regular expression pattern into the pattern field (without delimiters — just the pattern itself). Select the flags you need, then type or paste your test string. Matches are highlighted in real-time.
Flag Reference
- g — Global: find all matches, not just the first.
- i — Case-insensitive:
Amatchesa. - m — Multiline:
^and$match line start/end. - s — DotAll:
.also matches newline characters.
Tips
- Use
\dfor digits,\wfor word chars,\sfor whitespace. - Group with
(...), alternate witha|b, repeat with+,*,{n,m}. - Use
^and$to anchor to line/string start and end.