Regex Tester

Pattern
//
Enter a pattern and test string above
Flags:
Common patterns
Test string
1

  1. Enter a regular expression pattern in the Pattern field
  2. Toggle flags (g, i, m, s) as needed
  3. Type or paste your test string — matches are highlighted instantly
  4. Browse the Common Patterns library and click any pattern to load it
  5. Inspect each match's position and capture groups in the results table

Frequently Asked Questions

Is my data sent to a server?

No. All matching runs locally in your browser using the built-in JavaScript RegExp engine.

What regex flavour is supported?

JavaScript ECMAScript regex syntax, compatible with most modern languages for common patterns.

What do the flags mean?

g = find all matches (global), i = case-insensitive, m = ^ and $ match line boundaries, s = dot matches newline.