Analyzing Catastrophic Backtracking Behavior in Practical Regular Expression Matching
classification
💻 cs.FL
keywords
matchingexpressionregularenginesformalanalysisanalyzingaspects
read the original abstract
We develop a formal perspective on how regular expression matching works in Java, a popular representative of the category of regex-directed matching engines. In particular, we define an automata model which captures all the aspects needed to study such matching engines in a formal way. Based on this, we propose two types of static analysis, which take a regular expression and tell whether there exists a family of strings which makes Java-style matching run in exponential time.
This paper has not been read by Pith yet.
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.