Free · no sign-up · nothing uploaded
Regex Tester: find phone numbers, emails and more in any text
Paste any text, pick a ready-made pattern (mobile numbers, emails, PAN, GST, PIN code, dates, ₹ amounts) or write your own, and every match lights up instantly. Copy all matches or replace them in one tap.
How to use it
- 1
Paste your text (a contact list, a chat, a page) into the box.
- 2
Pick a ready-made pattern, or type your own regex.
- 3
See the matches highlighted, then copy them or use Replace to change the text.
What is a regex?
A regex (regular expression) is a short search pattern. Instead of searching for one exact word, it finds everything that looks a certain way: every 10-digit mobile number, every email address, every date. It is used in Excel, Google Sheets, programming, form validation and text editors.
Regex cheat sheet
- \d any digit, \w letter, digit or _, \s space
- . any character, [abc] one of a, b, c, [^abc] anything else
- + one or more, * zero or more, ? optional, {10} exactly 10 times, {2,5} 2 to 5 times
- ^ start, $ end, \b edge of a word
- ( ) a group you can reuse in Replace as $1, $2; a|b means a or b
Ready-made patterns
- Indian mobile:
(?:\+91[\s-]?|\b0)?[6-9]\d{4}\s?\d{5}\b - PIN code:
\b[1-9]\d{5}\b - PAN:
\b[A-Z]{5}\d{4}[A-Z]\b - Email:
[\w.+-]+@[\w-]+(?:\.[\w-]+)+
These check the shape only. A number that fits the pattern may still not exist.
Private and safe
Your text is checked inside your own browser. Nothing is uploaded or saved. If a pattern would take too long (for example (a+)+), the tester stops it so your phone never freezes.
Frequently asked questions
Is this the same regex as JavaScript?
How do I find all mobile numbers in a text?
Why does my pattern find nothing?
Can I use it on my phone?
Share this free tool with family and friends 🙏
Rate this tool
Be the first to rate it.
Thanks for rating! ❤️