Test regular expressions against your text, highlight matches, inspect capture groups and replace matching content with this free online regex tester.
Enter your regular expression pattern and choose the flags you want to use.
Select a ready-made pattern to get started quickly.
Enter or paste the text you want to test against your regular expression.
Matches are highlighted below. Select global mode to find all matching occurrences.
Replace matching text using a replacement string. Capture references such as $1 and $2 are supported.
This tool uses your browser's JavaScript regular expression engine. Regex syntax and some features may differ between programming languages. All testing happens locally in your browser.