Regex Tester
/ /
Test string
Matches 0

About this tool

This free online regex tester highlights every match in real time as you edit the pattern, flags, or test string. Your text is never uploaded: matching runs locally in your browser, so it is safe to paste logs, source code, or any data you would not send to a random server. It uses the JavaScript regex flavor — the same engine that runs in Node.js and every browser.

How to use

Flag reference

FAQ

Is my text uploaded to a server? No. Matching runs in a Web Worker inside your browser. Nothing leaves your machine.

Which regex flavor does this use? JavaScript (ECMAScript). It supports lookahead, lookbehind, named capture groups (?<name>...), and Unicode property escapes, but not PCRE-only features such as recursion or possessive quantifiers.

Why did my pattern get stopped? Some patterns (like (a+)+$ against a long string of a's) trigger catastrophic backtracking and could freeze the page. This tool runs matching in a background thread and stops any pattern that takes longer than half a second.