Developer & Data 100% Local Processing Limit: 2 MB

Regex Tester

Test regular expressions with flags, highlighted matches, capture groups, and ReDoS safety timeouts.

Sponsor Space
/ /
Live Highlighted Matches 0 matches
Capture Groups & Match Positions
Match Value Index Groups
Sponsor Space

How to Use the Regex Tester

  1. 1
    Enter your regular expression pattern (e.g., `\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b`).
  2. 2
    Toggle active regex flags: `g` (global), `i` (case-insensitive), `m` (multiline), `s` (dotAll).
  3. 3
    Paste test sample strings into the test area.
  4. 4
    Review real-time match highlights, match indexes, and capture group breakdowns.

Practical Example & Use Case

Common Real-World Scenario

Validating complex email addresses, phone numbers, or extracting key-value pairs from log messages.

Technical Notes & Limitations

Browser Engine Architecture

Complex backtracking patterns are executed in a dedicated Web Worker with a strict execution timeout to guard against browser freezes.

Frequently Asked Questions

What happens if I write a slow or catastrophic regex?

WebUtilities runs the regex in a sandboxed Web Worker; if execution exceeds 1 second, it is safely terminated with a ReDoS warning.