RegEx Tester and Explainer

Test regular expressions, highlight matches, and explain tokens.

Processed locally
This tool runs in the browser with the JavaScript RegExp engine.
Global
Ignore case
Multiline
DotAll
Unicode
Sticky

Matches

2

/\b(?<word>[A-Z][a-z]+)\b/g

Hello world. KitDev Space helps builders ship tools.

Capture groups

  • Match 1 ยท 0โ€“5 ยท Hello

    • #1 (word) : Hello ยท 0โ€“5
  • Match 2 ยท 20โ€“25 ยท Space

    • #1 (word) : Space ยท 20โ€“25

Token explanation

  • \bWord boundary.
  • (?<word>Named capturing group "word".
  • [A-Z]Character class. Matches one character from the listed set.
  • [a-z]Character class. Matches one character from the listed set.
  • +Quantifier. Matches the previous item one or more times.
  • )Group end.
  • \bWord boundary.

About the RegEx tester

This tool tests a regular expression against sample text in the browser.

Matches are highlighted in the sample. Capture groups list names and indices when present.

The explainer describes common tokens such as classes, quantifiers, and lookarounds.

This tool does not store your input.