Pattern matching method and device thereof
A pattern matching and matching technology, applied in the field of communication, can solve problems such as matching errors, effective identification of text information that cannot be logically related information, and inability to match text information, so as to improve matching capabilities and expand application scenarios.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] An embodiment of the pattern matching method of the present invention may include: reading the pattern matching string, wherein the pattern matching string includes at least one logical matching field for matching logical relationships; reading the target character string to be matched, the to-be-matched The matched target string contains a logical relationship; the logical matching field in the pattern matching string is used to logically match the logical relationship in the target string to be matched.
[0049] see figure 1, the specific steps may include:
[0050] 110. Read a pattern matching string, wherein the pattern matching string includes at least one logical matching field for matching logical relationships;
[0051] In practical applications, the read pattern matching string may include at least one logical matching field for matching logical relationships, where the logical matching fields may, for example, match logical relationships through logical opera...
Embodiment 2
[0065] Another embodiment of the pattern matching method of the present invention may include: reading the pattern matching string, the pattern matching string includes at least one logical matching field for matching logical relationships and at least one character matching field for matching character strings; Read the target string to be matched, the target string to be matched contains a logical relationship; judge whether the pattern matching string is currently used for matching a logical matching field or a character matching field; if it is determined that the pattern matching If the character matching field is currently used for matching in the string, the character matching operation corresponding to the character matching field will be triggered to match the character substring at the corresponding position in the target string to be matched; if the above pattern is judged The matching string currently used for matching is a logical matching field, and the logical ma...
Embodiment 3
[0084] In order to better understand the technical solution of the embodiment of the present invention, the process of expanding several "logical matching fields" in the pattern matching string containing PCRE to match the target character string is taken as an example below to introduce an example.
[0085] see image 3 , the specific steps may include:
[0086] 301. Read the pattern matching string;
[0087] Wherein, the pattern matching string includes a plurality of matching fields, specifically including at least one logical matching field for matching logical relationships through logical operations or other methods, and at least one PCRE, and of course at least one character string (including a or more characters). Wherein, the character string or PCRE in the pattern matching string can be regarded as a kind of character matching field.
[0088] Further, in order to improve the matching speed, the read pattern matching string can be precompiled.
[0089] 302. Read t...
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