Regex Tester — Test Regular Expressions Online Free

Test and debug regular expressions in real time. Enter your pattern and test string to see matches highlighted instantly. Supports JavaScript regex flags. Free, runs in browser.

0ms
Active: ig
0 matches
Extractor0 groups
No extracted results yet.

Group 0 = full match · 1+ = capture groups

Replace preview

Type a replacement to preview results.

$& = whole match · $1+ = capture groups

Matches & groups

#IndexMatchCapturesNamed groups
No matches yet.

Flag reference

iCase-insensitive matching
gFind all matches, not just the first
mMake ^ and $ match start/end of each line
sLet . match newline characters (dotAll)
uFull Unicode support
ySticky — match only at lastIndex position

Notes

  • Runs entirely in your browser — no data is sent to a server.
  • Use the g flag to find all matches; without it only the first match is returned.
  • Named groups use the syntax (?<name>…) and appear in the Named groups column.
  • The Export CSV button downloads all matches with captures as a spreadsheet-ready file.

Related tools