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 matchesAshish builds practical tools. Regex makes matching visible.
Match details
2 found| # | Match | Position | Capture groups |
|---|---|---|---|
| 1 | Ashish | 0–6 | None |
| 2 | Regex | 31–36 | None |
Matching runs locally in your browser. Your pattern and test text are not uploaded.
How to use the Regex Tester
- Enter a regular expression and flags.
- Paste representative sample text.
- 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.