Method and device for matching regular expressions
An expression matching and expression technology, applied in the field of data processing, can solve the problems of slow matching speed of DFA table and occupying large storage space, and achieve the effect of improving matching speed and matching efficiency, reducing storage space and reducing state.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] Embodiment 1 of the present invention provides a method for regular expression matching. figure 1 It is an overall flowchart of the regular expression matching method in Embodiment 1 of the present invention. Such as figure 1 As shown, the subject of execution of the method is a regular expression matching device provided in the embodiment of the present invention, and the method includes the following steps:
[0030] Step 100, load the message to be matched and the DFA state table of the deterministic finite automaton, the DFA state table includes a state transition table, which includes all state addresses in the regular expression matching process and links between each state A migration relationship, the above-mentioned migration relationship includes a matching condition and a next state that meets the matching condition. The above-mentioned address refers to a starting location where data corresponding to a certain state is stored in a storage medium, such as a ...
Embodiment 2
[0078] Embodiment 2 of the present invention provides a regular expression matching device. Figure 8 It is a functional block diagram of a regular expression matching device according to Embodiment 2 of the present invention. Such as Figure 8 As shown, the device 200 includes:
[0079] The message and DFA table loading unit 210 is used to input the message to be matched and the DFA state table of the deterministic finite automaton. The DFA state table includes a state transition table, and the state transition table includes a regular expression matching process. All the state addresses of , and the migration relationship between each state, the migration relationship includes the matching condition and the next state that meets the matching condition;
[0080] The search unit 230 includes a data type determination module 231, a matching module 232 and an output module 234;
[0081] The data type determination module 231 is used to judge the data type corresponding to the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com