Regex tester
Enter a pattern and a test string to see every match highlighted. The pattern runs on your device with a time limit.
Regex tester runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.
How to use it
- Type the pattern Type the pattern without slashes. The tester uses JavaScript syntax, which differs from Python, PCRE, and C# in some details. Choose the flags you need.
- Paste the test text Paste the text to search in the Test string box. Every match is highlighted and listed with its position, its capture groups, and any named groups.
- Preview the replacement Type a replacement to see the result. Use $1 for the first group,