Test regular expressions and highlight matches in text.
Test JavaScript regular expressions against sample text. Matches are highlighted. Use for debugging patterns.
1. Enter a regex pattern and optional flags (g, i, m).
2. Enter or paste test text. Matches will be highlighted below.