Developer

Regex Tester

Write a JavaScript regular expression and test string to see match counts, highlighted matches and capture groups in real time. Invalid patterns are reported clearly, and matches are rendered safely with escaped text.

Examples

Input
Pattern matches digits on 'a1 b22 c333'
Output
3 matches: 1, 22, 333

How it works

Patterns run on your browser’s JavaScript regular-expression engine, so the syntax is JavaScript’s. A pattern written for PCRE or Python may need small changes, for example to possessive quantifiers or inline flags.

Flags
FlagEffect
gFind every match. Without it, only the first match is shown.
iIgnore upper and lower case.
m^ and $ match at each line break, not only at the ends of the text.
sThe dot also matches line breaks.
uTreat the pattern and text as full Unicode.
yMatch only at the current position (sticky).

Capture groups are listed for the first five matches that have any, with the group name where one is defined. Matching stops after 100,000 matches so a runaway pattern cannot freeze the page.

How to use Regex Tester

Write your pattern
Type a regular expression and optional flags such as g, i or m.
Add test text
Paste the text you want to search; matches highlight as you type.
Inspect the matches
Check the match count, highlighted preview and capture groups.

Why use this tool

Live match count and highlighted preview
Shows capture groups, including named groups
Clear error messages for invalid patterns
Match text is escaped, so highlighting is always safe

Frequently asked questions

It uses the browser's native JavaScript RegExp engine, so syntax and flags match what runs in JS.

Yes. Capture groups for the first few matches are listed, including named groups when present.

Found a bug or have an idea?

ToolOrbit is actively developed — feedback directly shapes what gets built next.

Send feedback