Apparatus and method for parallel regular expression matching
Abstract
A regular expression matching hardware implementation comprises two tightly coupled hardware engines. A regex engine performs state transitions and accepts (as matching) or rejects (as not matching) an input string. The regex engine takes also care of the logic of the operators and deals with the complexity of the state machine. A lookup engine reads characters from an input (e.g., tape, memory, network packets, or the like), and provides them to the regex engine. A preprocessing procedure transforms a regular expression into a regex state transition table and a lookup table, for use by the regex engine and lookup engine, respectively. The two hardware engines are synchronized by a global state machine. The regex engine advances the state machine, and the lookup engine reads it.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of matching a stream of characters against a predetermined regular expression, implemented using computational hardware comprising at least two hardware engines, the at least two hardware engines comprising a lookup engine and a regex engine, the method comprising: obtaining a transition table representing the regular expression as a graph comprising one or more input-conditional state transition specifications not limited to single-character inputs; generating a lookup table based on the transition table, the lookup table containing exactly one entry for each state of a state machine
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗