Regex Tester
Test JavaScript regular expressions against your text with live match highlighting, capture groups and a replace preview. Everything runs locally in your browser — nothing is uploaded.
/
/
gi
Test string
Highlighted
Matches & groups
Replace
Result
Quick regex reference
.any character\d \w \sdigit, word, space^ $start / end* + ?0+, 1+, 0 or 1{n,m}n to m times[abc]character set(…)capture group(?<n>…)named groupa|ba or b