What is the Regex Tester Tool?
A regular expression (regex) is a short code that finds patterns in text. This tester shows every match highlighted as you type, so you can see at once if your pattern is right.
Use the flag buttons, check each match and its groups, and try a replace. A list of ready patterns for Indian formats like mobile numbers, PIN codes, PAN and GSTIN gets you started. It runs the regex engine of your browser, so it matches how JavaScript works.
How to use it
- Type your pattern in the top box.
- Paste the text you want to test in the text box.
- Watch the matches light up, and open the table to see each group.
Why people like this tool
Live highlight
Matches light up as you type.
Groups and positions
See each group and where it starts.
Replace preview
Try a replace before you use it.
Ready patterns
Email, mobile, PIN, PAN and GSTIN.