Regex Tester
Test a JavaScript regular expression against text and inspect matches and capture groups.
No matches
How to use the Regex Tester
Test a JavaScript regular expression against text and inspect matches and capture groups.
Steps
- Enter a pattern without slash delimiters.
- Set JavaScript regular-expression flags; the default is g for global matching.
- Paste a test string and review each match and its index.
Example: Find the whole word โcatโ
Pattern: \bcat\b
Flags: gi
Text: A cat sat beside a catalogue.Limitations
Patterns use the browserโs JavaScript RegExp engine, not every languageโs regex dialect. Avoid untrusted or very complex patterns; matching time depends on the expression and input.