Toolboxby 4Carbon

Regex tester

Find emails, links, dates, PIN or PAN in text, or test your own pattern.

Found in your text
Replace and details
#MatchParts 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

  1. Choose what to find, for example email addresses, or type your own pattern.
  2. Paste your text. Everything found lights up at once.
  3. 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.

4Carbon

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.