Regex Toolkit
Ready-made regex patterns, escaping for a literal match, splitting text on a pattern and pulling every match or group into a list.
Runs in your browser. Nothing leaves this device.
How to use Regex Toolkit
- 1Pick Ready-made, Extract, Split or Escape.
- 2Choose a pattern or type your own, then paste your text.
- 3Copy the pattern, the list of matches or the pieces.
Questions
Which regex flavour is this?
JavaScript, as your browser runs it. Most patterns work the same in Python, PHP and Java, but lookbehinds and named groups differ a little between languages.
Can I pull out just one part of each match?
Yes. Put that part in round brackets, a capture group, and pick the group under “Take from each match”. Picking all groups gives tab-separated columns.
What does Escape do?
It puts a backslash before characters that have a special meaning in a regex, like . ? ( and $, so the pattern matches your text exactly.
Is my text sent anywhere?
No. Everything runs in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.