Regex Tester
Test regular expressions in real time with match highlighting, capture groups, flags, $1 replacement and a quick reference. No sign-up.
./regex-tester
//gi
Flags
Highlighted matches2 matches
Match details
Group 1: anaGroup 2: example.com
Group 1: JUANGroup 2: mail.io
Replace
Use $1, $2… or $<name> to insert the captured groups.
Result
Email me at ana at example.com or JUAN at mail.io and I will reply.
Quick reference
.any character\da digit (0-9)\wletter, digit or _\swhitespace\bword boundary^ $start / end*0 or more+1 or more?0 or 1 (optional){n,m}between n and m times[abc]one of a, b or c[^abc]none of a, b, c(…)capturing group(?:…)non-capturing group(?<n>…)named groupa|ba or bEverything is processed in your browser; nothing is sent to any server.
Reviews & ratings
No reviews yet. Be the first to leave one!
Related guides
Blog tutorials where this tool comes in handy.
Guide What Breaks When You Upgrade from Symfony 7.4 to 8.1 Symfony 8.0 lost support in July 2026. XML config is gone, Security changed shape, and 7.4 LTS is the alternative. Every breaking change, ranked by impact. Guide PHP 8.6: What Actually Breaks When You Upgrade PHP 8.6 ships November 19, 2026. The session defaults that break logins silently, the NUL-byte hardening, the trim() change nobody mentions, and every deprecation — with code. Guide How to Learn to Code From Scratch in 2026: The Complete Guide The real path to learning programming in 2026, now that AI writes half the code: which language to pick, the 9 concepts that matter, a 12-month plan, and how to use AI without becoming dependent on it. Guide PHP 8.6: Every New Feature and the Release Date PHP 8.6 ships November 19, 2026. Partial Function Application, clamp(), the SortDirection enum, debuggable enums and #[\Override] on class constants. Everything confirmed, with examples.
Related tools
Others from the catalogue that pair well with this one.
HTML Minifier Minify your HTML by removing all unnecessary characters. CSS Minifier Minify CSS in your browser with csso: strips whitespace and comments, shortens values and merges duplicate rules without changing the cascade. Keeps /*! licenses */ and calc(). Nothing uploaded. SQL Formatter / Beautifier Format and beautify your SQL code with ease. HTML Entity Converter Encode or decode HTML entities for any given input.