Tool

Regex Tester

Paste a regex and test string to see matches highlighted and capture groups extracted in real time.

/ /

Regex Quick Reference

PatternMeaningExample
\dDigit\d+ matches 123
\wWord character\w+ matches hello_123
.Any character.+ matches anything
^...$Start / end of line^hello matches lines starting with hello
()Capture group(\d+)-(\d+)
[a-z]Character range[a-zA-Z]+