.*

Regex Tester

Test and debug regular expressions with live match highlighting. See every match, capture group, and index instantly as you type. Replace mode included.

FREE LIVE HIGHLIGHTS CAPTURE GROUPS
/
/
Flags: case-insensitive, all matches
Enter a pattern above
$& full match $1 group 1 $2 group 2 $` before match $' after match
Match Details
No matches found in the test string.

Quick Patterns

Click any pattern to load it into the editor above.

Flag Reference

g
Global - find all matches, not just the first
i
Ignore case - match upper and lower case
m
Multiline - ^ and $ match each line
s
Dot-all - . also matches newlines
u
Unicode - treat pattern as Unicode code points

Quick Cheatsheet

\d digit
\D non-digit
\w word char
\W non-word
\s whitespace
\S non-space
. any char
^ start
$ end
\b word boundary
* 0 or more
+ 1 or more
? 0 or 1
{n,m} n to m
[abc] char class
(a|b) alternation
(?:) non-capture
(?=) lookahead