Elysia Tools
Navigation
Development
Regex Linter
Detect error-prone and risky regex patterns, check for catastrophic backtracking, unanchored patterns, and provide rewrite suggestions
Details
What this tool helps you do
Regex Linter
Overview
Regex Linter analyzes regular expressions for common anti-patterns, performance issues, and correctness problems. It helps you write better, safer, and more efficient regular expressions.
Issues Detected
Critical Issues (Performance)
- Catastrophic Backtracking: Nested quantifiers like
(a+)+that can cause exponential time complexity - Quadratic Behavior: Patterns like
(.*)*that exhibit O(n²) performance - Unbounded Repeats: Greedy quantifiers without maximum length limits
Error Issues (Correctness)
- Unescaped Dots: Using
.when you mean . (literal dot) - Missing Anchors: Patterns that can match anywhere in the text
- Invalid Character Classes: Ranges like
[a-Z]that include unexpected characters - Octal Escapes: Ambiguous