Regex Tester help
Build a regex against real text and watch the matches, groups, and a replacement update live.
Steps
- Type the pattern between the slashes and toggle the flags you need.
- Paste test text. Matches are highlighted and listed below with their position.
- Each match shows its numbered groups (
$1,$2) and any named groups ($<name>). - Type a replacement to see the result;
$1and$<name>references work.
Flags
g global, i ignore case, m makes ^ and $ match line boundaries, s makes . match newlines, u unicode, y sticky.
Notes
- It uses the browser's own JavaScript regex engine, so the syntax is ECMAScript, not PCRE.
- Your pattern and text are saved in your own browser and nothing is uploaded.
Everything runs in your browser. Nothing you enter or drop is uploaded.
Back to Regex Tester