发明名称 ONE PASS SUBMATCH EXTRACTION
摘要 A method for one pass submatch extraction may include receiving an input string, receiving a regular expression with capturing groups, and converting the regular expression with capturing groups into a finite automaton M to extract submatches. The finite automaton M may be evaluated to determine whether the regular expression belongs to a set of regular expressions for which submatch extraction is implemented by using one pass by determining whether an automaton M′=rev(close(M)) is deterministic. The input string may be matched to the regular expression if the regular expression belongs to the set of regular expressions for which submatch extraction is implemented by using one pass.
申请公布号 US2014289264(A1) 申请公布日期 2014.09.25
申请号 US201313848562 申请日期 2013.03.21
申请人 HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. 发明人 Horne William G.;Mowbray Miranda Jane Felicity
分类号 G06F17/27 主分类号 G06F17/27
代理机构 代理人
主权项 1. A method for one pass submatch extraction, the method comprising: receiving an input string; receiving a regular expression with capturing groups; converting, by a processor, the regular expression with capturing groups into a finite automaton M to extract submatches; evaluating the finite automaton M to determine whether the regular expression belongs to a set of regular expressions for which submatch extraction is implemented by using one pass by determining whether an automaton M′=rev(close(M)) is deterministic; and matching the input string to the regular expression if the regular expression belongs to the set of regular expressions for which submatch extraction is implemented by using one pass.
地址 Houston TX US