“…There have been several attempts to extend automata with recording capabilities, but many are not able to deal with recordings under iteration [30,14]. In [22], Frisch and Cardelli show how to perform greedily disambiguated pattern matching on a string, ω, using a regular expression, R, via an automata-based approach while retaining structure (i.e., parsing) in O(|ω||R|) time and with O(|ω||R|) memory usage.…”