Developer
Regex Tester
Test JavaScript regular expressions in your browser.
Processed locally in your browser. Your data was not uploaded.
Quick startThree steps to your result
- 1
Add your inputPaste or type the text, code, or value you want to work with.
- 2
Set any optionsUse the controls below if you want to customize the result.
- 3
Get your resultYour result appears below or updates as you work. Copy or download it when available.
Quick answers
Frequently asked questions
How do I test a regular expression?
Enter a pattern and sample text, then review the matches and captures shown by the tool.
Which regex syntax is used?
The tester uses browser JavaScript regular-expression behavior. Other languages and engines can differ.
Why does my pattern need escaping?
Characters such as slashes and backslashes have special meaning in patterns or delimiters. Escape them according to the displayed input format.
Is my sample text uploaded?
No. Matching runs locally in your browser.