Regex Tester
Test regular expressions in real time. See highlighted matches and captured groups.
How to use?
Paste your regular expression in one field and the test text in the other. As you type, the matches get highlighted. To fine-tune the result, lean on the flags. The g flag finds every occurrence (global), i ignores upper and lower case (case-insensitive), and m treats each line on its own (multiline).
Test regular expressions live
Regular expressions are powerful, yet notoriously hard to get right the first time. This tester makes the process visual. You write the pattern on one side, paste the test text on the other, and see at once which parts match, highlighted right in the content.
Captured groups show up separately, which helps you understand exactly what each part of the expression is grabbing. It makes all the difference when you're extracting data, validating formats or building a replacement. Changed the pattern? The result updates in real time, so you keep refining until you get there.
It all happens in the browser, with no text leaving your machine. A safe, quick way to work the kinks out of a regex before you drop it into your code.
Frequently asked questions
Why do I still see every match after deleting the g flag?
Does the captured-groups panel cover every match?
Does the syntax tested here carry over to Python, PHP or grep?
Read more on this
Related Tools
Regex Cheatsheet
Quick reference of the main regular expressions — quantifiers, classes, anchors, groups, lookarounds, flags. With clickable examples and explanations. Everything in your browser.
Express Route Pattern Tester
Tests a URL against Express-style route patterns (/users/:id), showing which one matches first, the extracted params and route conflicts.
Cron Expression Editor
Parse and build cron expressions with human-readable descriptions, next execution times and shortcuts for common schedules.
SemVer Range Tester
Tests which versions satisfy a semver range (^1.2.3, ~2.0, >=1 <2) and explains the range as a lower and an upper bound.
Cron Parser (describe expression)
Paste a cron expression and see in plain text when it will fire (e.g. "every day at 9am" for `0 9 * * *`). Lists the next N runs. Everything in your browser.
Truth Table
Generate truth tables for Boolean logic expressions. Supports AND, OR, NOT, XOR, NAND and NOR. Auto-detects variables and shows all possible combinations. Processed in the browser.