Free tools, Developers
Regex tester
Type a pattern and some text. Matches light up as you type.
Common:
Highlighted
Result
Matches
Questions
Which regex flavor does this use?
JavaScript (ECMAScript) regular expressions, the same engine as your browser and Node.js. Most syntax matches PCRE, Python and Java, but lookbehind support and some flags differ.
What do the flags mean?
g finds all matches instead of the first, i ignores case, m makes ^ and $ match at line breaks, s lets . match line breaks, u enables full Unicode, and y matches only at the current position.
How do I use groups in the replacement?
Use $1, $2 for numbered groups and $<name> for named groups like (?<year>\d{4}). $& inserts the whole match.
More developers tools
- JSON formatterFormat, validate and minify JSON, with the exact error position.
- Base64 encoderEncode and decode Base64 text, or turn a file into a data URI.
- URL encoderEncode and decode URL components and break a URL into parts.
- JWT decoderRead the header and payload of a JSON Web Token and its expiry.
- Cron expression helperExplains a cron schedule in plain English and shows the next runs.
- Hash generatorMD5, SHA-1, SHA-256 and SHA-512 of text or files.