Regex tester
Test regular expressions live with highlighting, groups and replace.
Runs in your browser – your files are not uploaded
How to use Regex tester
- 1
Enter your regular expression and choose the flags.
- 2
Paste the test text.
- 3
Review the matches and, optionally, the replacement result.
About Regex tester
The regex tester shows all matches of a regular expression in your text while you type, including the position and capture groups of each match.
Switch flags such as global, ignore case, multiline and dotAll, and preview search-and-replace with references like $1.
Frequently asked questions
Which regex syntax is used?
JavaScript (ECMAScript) regular expressions, including named groups, lookbehind and Unicode properties.
Why does my pattern find nothing?
Check escaping: in regex, characters like . ? + ( ) must be escaped with a backslash to match literally.