toolsya.com

Regex Tester

Test and validate regular expressions with live matching and highlighting

Quick Examples

Regular Expression

Test String

Match Results

Total Matches
0

Regex Quick Reference

Character Classes

. - Any character
\d - Digit (0-9)
\w - Word character
\s - Whitespace

Quantifiers

* - 0 or more
+ - 1 or more
? - 0 or 1
{n,m} - Between n and m

Anchors

^ - Start of string
$ - End of string
\b - Word boundary
\B - Non-word boundary

Groups

() - Capturing group
(?:) - Non-capturing
[] - Character set
| - Alternation