Regex Tester

Test regular expressions against text, find matches, capture groups and replace text.

Example: \d+ matches one or more digits

Enter a pattern and test text.

Matches

Match details

No matches yet.

Replace

Regex cheat sheet
. Any character
\d Digit
\w Word character
\s Whitespace
+ One or more
* Zero or more
? Optional
^ Start of text/line
$ End of text/line
( ) Capture group
[ ] Character set
| OR