Regex tester
Type a pattern and some text. Matches light up as you type.
FreeNo sign-upRuns in your browser
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 formatterDevelopersFormat, validate and minify JSON, with the exact error position.Open →
- Base64 encoderDevelopersEncode and decode Base64 text, or turn a file into a data URI.Open →
- URL encoderDevelopersEncode and decode URL components and break a URL into parts.Open →
- JWT decoderDevelopersRead the header and payload of a JSON Web Token and its expiry.Open →
- Cron expression helperDevelopersExplains a cron schedule in plain English and shows the next runs.Open →
- Hash generatorDevelopersMD5, SHA-1, SHA-256 and SHA-512 of text or files.Open →