UtilX0 cookies · 0 trackers

Regex Tester

Test a regular expression against sample text and see matches highlighted live. Uses JavaScript's regex engine.

Processed 100% locally in your browser

g = global, find every match instead of stopping at the first one. See the full flag reference below.

Tests automatically as you type. Tip: press Ctrl+Enter (Cmd+Enter on Mac) to test immediately.

Common patterns

Click to load a ready-made pattern into the tester above.

Common flags

FlagMeaning
gGlobal — find all matches, not just the first
iCase-insensitive
mMultiline — ^ and $ match line boundaries
sDot matches newline characters too
Regex cheat sheetRelated tool: JSON Formatter