ended3월 17일· 1 sources

yes, all longest regex matches in linear time is possible

모든 최장 정규식 매칭을 선형 시간에 처리하는 것은 가능하다

Why it matters

The post addresses a fundamental gap in regex engines: even 'linear time' engines like RE2, Go, and Rust become quadratic when finding all matches via iteration. Using the example pattern `.*a|b` against a string of b's, it demonstrates how repeated full-haystack scans produce O(n²) work, and argues that academic theory's focus on single yes/no matching has left this practical problem unaddressed.

1
Sources
+0
24h
Growth
187d
Active
regexlinear timeall matchesRE2rust regexquadratic complexity

Sources

Related Issues