All tools / Formatters

Regex Tester

Test JavaScript regular expressions with live match details.

Runs in your browser · your data never leaves your device
Ad space

How it works

Type a pattern and flags, paste your text, and press Find matches. Each match shows its position and any capture groups. It uses the JavaScript regex engine, so syntax follows JavaScript rules.

Frequently asked questions

What do the flags mean?

g finds all matches, i ignores case, m makes ^ and $ match each line, s lets . match newlines.

Related tools