Abstract
We apply results from ambiguity of non-deterministic finite automata to the problem of determining the asymptotic worst-case matching time, as a function of the length of the input strings, when attempting to match input strings with a given regular expression, where the matcher being used is a backtracking regular expression matcher.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Regexlib. http://www.regxlib.com. Accessed 06 Oct 2015
Regular expression static analysis project page. http://www.cs.sun.ac.za/~abvdm/regex.html. Accessed 30 Apr 2016
Snort. http://www.snort.org. Accessed 06 Oct 2015
Adam, B.: Regular expression dos and node.js (2014). https://blog.liftsecurity.io/2014/11/03/regular-expression-dos-and-node.js
Allauzen, C., Mohri, M., Rastogi, A.: General algorithms for testing the ambiguity of finite automata. In: Ito, M., Toyama, M. (eds.) DLT 2008. LNCS, vol. 5257, pp. 108–120. Springer, Heidelberg (2008). http://dx.doi.org/10.1007/978-3-540-85780-8_8
Berglund, M., Drewes, F., van der Merwe, B.: Analyzing catastrophic backtracking behavior in practical regular expression matching. In: Ésik, Z., Fülöp, Z. (eds.) Proceedings 14th International Conference on Automata and Formal Languages, AFL 2014, EPTCS, vol. 151, Szeged, Hungary, 27–29 May 2014, pp. 109–123 (2014). http://dx.doi.org/10.4204/EPTCS.151.7
Berglund, M., van der Merwe, B.: On the semantics of regular expression parsing in the wild. In: Drewes, F. (ed.) CIAA 2015. LNCS, vol. 9223, pp. 292–304. Springer, Heidelberg (2015). http://dx.doi.org/10.1007/978-3-319-22360-5_24
Cox, R.: Implementing regular expressions (2007). http://swtch.com/~rsc/regexp/. Accessed 26 Feb 2016
Gray, J., Harrison, M.A., Ibarra, O.H.: Two-way pushdown automata. Inf. Control 11(1/2), 30–70 (1967). http://dx.doi.org/10.1016/S0019-9958(67)90369-5
Rathnayake, A., Thielecke, H.: Static analysis for regular expression exponential runtime via substructural logics. CoRR abs/1405.7058 (2014). http://arxiv.org/abs/1405.7058
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this paper
Cite this paper
Weideman, N., van der Merwe, B., Berglund, M., Watson, B. (2016). Analyzing Matching Time Behavior of Backtracking Regular Expression Matchers by Using Ambiguity of NFA. In: Han, YS., Salomaa, K. (eds) Implementation and Application of Automata. CIAA 2016. Lecture Notes in Computer Science(), vol 9705. Springer, Cham. https://doi.org/10.1007/978-3-319-40946-7_27
Download citation
DOI: https://doi.org/10.1007/978-3-319-40946-7_27
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-40945-0
Online ISBN: 978-3-319-40946-7
eBook Packages: Computer ScienceComputer Science (R0)