Regex tester
Find emails, links, dates, PIN or PAN in text, or test your own pattern.
Found in your text
Replace and details
| # | Match | Parts in ( ) |
|---|
Pattern cheat sheet
- \d
- a digit 0 to 9
- \w
- a letter, digit or _
- \s
- a space or new line
- .
- any one character
- +
- one or more of it
- *
- none or more of it
- ?
- maybe (optional)
- {6}
- exactly 6 of it
- [abc]
- one of a, b or c
- [^ ]
- anything but a space
- \b
- edge of a word
- ^ $
- start, end of text
- a|b
- a or b
- ( )
- a part, $1 in replace
- \.
- a real dot
Runs on your device. Nothing you add here is uploaded.
How to use it
- Choose what to find, for example email addresses, or type your own pattern.
- Paste your text. Everything found lights up at once.
- Copy what was found, or replace it under "Replace and details".
Questions
I do not know regex. Can I still use it?
Yes. Choose what to find from the list (emails, links, numbers, dates, PIN codes, PAN numbers, hashtags) and paste your text. The cheat sheet explains the symbols if you want to change a pattern.
Which regex flavour is this?
JavaScript, as in every browser and Node.js.
Can a bad pattern freeze the page?
No. Matching runs in the background and stops after one second.
More tools
JSON formatterMake JSON readable, or find exactly where it is broken.
Base64 encode and decodeEncode or decode Base64, for text or whole files.
URL encode and decodeEncode text for links, decode messy links, and see what is inside.
Exam photo and signature resizerPick your exam form and photo, get a file the portal accepts.
Need software or a website made for you?
This Toolbox is made by 4Carbon, a startup that builds custom software, websites and online tools for businesses.