RegEx Tester

Test and debug regular expressions online. Find matches, validate patterns, and perform text replacements.

Regular Expression

/ /

Test String

Matches (0 found)

Enter a pattern and test string to see matches

Replace Text

Use $1, $2, etc. to reference capture groups

Common Patterns

\d+ - One or more digits
\w+ - One or more word characters
\s+ - One or more whitespace
^ - Start of string/line
$ - End of string/line

Flags Reference

g - Find all matches
i - Ignore case
m - Treat as multiple lines
s - . matches newlines
u - Unicode support
y - Match from lastIndex