Test Regex

Test a regular expression against sample text and inspect the matches.

/
/
Results
No matches found.

Try adjusting your regex pattern or test string.

Regex Cheatsheet
.Any character except newline
\wWord (A-Z, a-z, 0-9, _)
\dDigit (0-9)
\sWhitespace (space, tab, etc)
[abc]Any of a, b, or c
[^abc]Not a, b, or c
*0 or more
+1 or more
?0 or 1
{3}Exactly 3
{3,}3 or more
{3,5}Between 3 and 5
^Start of string / line
$End of string / line
\bWord boundary
(abc)Capture group
(?:abc)Non-capturing group
(?=abc)Positive lookahead
(?!abc)Negative lookahead
gGlobal match
iCase-insensitive
mMulti-line
uUnicode
sDot matches newline

Test a regular expression against sample text, inspect matches, and refine the pattern faster.

HTML formatter and CSS formatter keep related checks for regex in reach.

Contact

Missing something?

Feel free to request missing tools or give some feedback using our contact form.

Contact Us