Free regex tester

Test a regular expression against your text and see every match and capture group.

Runs in your browser. Nothing you type is sent to us · free, no sign-up

Regex tester

Loading the tool

Need a hand?

Stuck? Ask an engineer.

Talk to an engineer
Prefer to call?

071 577 0488, any hour, in Sinhala or English.

How to read the result

Type a regular expression and some text and the tester highlights every match and lists the captured groups as you type. Add a replacement to preview a search-and-replace. It uses JavaScript's regex engine, which behaves like PCRE for most everyday patterns.

Questions people ask

Why does my pattern match more than I expect?

Quantifiers like .* are greedy. Add ? (.*?) to match as little as possible, or use a narrower class such as [^,]*.

Is my text sent anywhere?

No. Matching happens in your browser.

Is this tool free?

Yes, free with no sign-up, and it runs entirely in your browser.