Regex Tester
Tests a JavaScript regular expression against a test string, highlighting every match and listing them separately. Runs entirely in your browser.
How to use Regex Tester
Step-by-step guide to the boxes below. Open it only if you need help.
How to use Regex Tester
Step-by-step guide to the boxes below. Open it only if you need help.
-
1
Regex pattern (no slashes) Text
The pattern without slashes, e.g. \d+ matches numbers.
Example: \d+
-
2
Flags (e.g. gi) Text
Options: g finds all matches, i ignores capital letters, m treats each line separately.
Example: g
-
3
Test string Text box
The text you want to test the pattern against.
-
4
Press “Test”
Click the button under the boxes. If something is missing or not valid, a short message tells you which box to fix.
-
5
Read your result
Your answer appears under the button, with a short note in plain words where it helps. Change any box and press again to compare different numbers.
Regex Tester FAQs
User Reviews
No reviews yet — be the first to try this tool and leave one.
More Free Tools
Handy the next time you're here
Leave a review