How to Use the Regex Tester
-
1
Enter your regular expression pattern (e.g., `\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b`).
-
2
Toggle active regex flags: `g` (global), `i` (case-insensitive), `m` (multiline), `s` (dotAll).
-
3
Paste test sample strings into the test area.
-
4
Review real-time match highlights, match indexes, and capture group breakdowns.
Practical Example & Use Case
Validating complex email addresses, phone numbers, or extracting key-value pairs from log messages.
Technical Notes & Limitations
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.