Data & Developer

Regex Tester

Test a regular expression against sample text with live match highlighting, capture groups, and a replacement preview.

4 MATCHESflags=/g/
pattern.matcher/js.flavor
0.16ms
Pattern Matcher · Live Test
83 chars · 3 ln2 groups
//g
flags:
test.string
edit · highlights live
83 chars·3 ln
capture.groups
first match shown
2 grp
$0 · whole@0
Alex Thompson
$1
Alex
$2
Thompson
all matches · 4
Alex ThompsonJordan LeeMeet SamBeta Inc
token.breakdown
what each piece does
\bWord boundary.
(Capturing group.
[A-Z]Character class: any one of these.
[a-z]Character class: any one of these.
+Quantifier: previous token one or more times.
)End of group.
\sWhitespace: space, tab, newline.
(Capturing group.
[A-Z]Character class: any one of these.
[a-z]Character class: any one of these.
+Quantifier: previous token one or more times.
)End of group.
\bWord boundary.