Test your regular expressions in real time and see matches highlighted.
Write your pattern between the slashes and enable or disable the flags (g, i, m, s) as needed.
Paste the test text below: matches highlight instantly and are listed with their captured groups.
Tweak the pattern live until the highlighting marks exactly what you want.
Write your regular expression and test it against any text: matches are highlighted in real time together with captured groups.
It uses the same JavaScript engine as your browser, so what you see here behaves exactly like in your code. Toggle the g, i, m or s flags as you need.
Validate formats
Check if emails, dates or phone numbers match the pattern you expect before applying it in code.
Debug captures
Review what capture groups () return in each match to build your replacement or extraction correctly.
Learn regex
Experiment with classes, quantifiers and anchors and see the visual result on every attempt.
Yes, expressions are evaluated with the browser native syntax, the same as Node.js. What you test here behaves the same in your code.
g (all matches), i (ignore case), m (^ and $ act per line) and s (the dot also matches newlines).
When you want to extract part of a match: for example, in (\d{2})-(\d{2})-(\d{4}) each parenthesis returns a piece of data you can reuse.
UUID Generator
Generate unique UUID v4 and v7 instantly. Copy one or many with a single click.
JSON Formatter
Format and validate your JSON instantly: indent, minify and colorize your code.
Base64 Encoder & Decoder
Encode and decode text to Base64 quickly and securely.
CSS Minifier & Formatter
Minify or pretty-print your CSS instantly. Free, no install required.