Regex Tester

Test JavaScript regular expressions quickly and securely in your browser.

//

Test and debug your JavaScript regular expressions instantly. See real-time matches, capture groups, and indices.

How to Use

  1. Enter your regex pattern.
  2. Specify any flags (e.g. 'g', 'i', 'm').
  3. Enter your test string.
  4. Review the matches and capture groups highlighted below.

Examples

Matching Numbers

Pattern 'd+' with flag 'g' will extract all numbers from a string.