Regex Tester
Enter a regular expression and see matches in real time.
//g
Related Tools
Enter a regular expression and see matches in real time.
Regular expressions are powerful but notoriously easy to get subtly wrong. A live tester shortens the feedback loop: you see exactly what matches, where, and which capture groups fire — before the pattern ever reaches production code.
Build patterns incrementally. Match the literal part first, then add character classes, quantifiers, and groups one at a time while watching the highlight update. Most broken regexes come from stacking too much at once.
.* eats as much as possible — use .*? for lazy matching.., +, ( need a backslash to match literally.^ and $, a "validation" pattern happily matches a substring.The same pattern behaves differently per flag set. Case-insensitive search needs i; multi-line log parsing usually wants m; and matching across line breaks requires s.