Regex workbench

Build a pattern, test sample text, and inspect every match.

2 matches
/\b[A-Z][a-z]+\b/g
//
Flags
60 characters
Try:

Match preview

Highlighted matches

Ashish builds practical tools. Regex makes matching visible.

Match details

2 found
#MatchPositionCapture groups
1Ashish0–6None
2Regex31–36None

Matching runs locally in your browser. Your pattern and test text are not uploaded.

How to use the Regex Tester

  1. Enter a regular expression and flags.
  2. Paste representative sample text.
  3. Review highlighted matches and adjust the pattern.
Example: ^\\d{4}-$

Regex Tester FAQ

Why should I test more than one sample?

A pattern can match one example while missing edge cases, so test valid, invalid, and boundary inputs before shipping it.