Regular expression conversion method and device, equipment and storage medium
The invention provides a regular expression conversion method and device, equipment and a storage medium. The method comprises: obtaining an original logic expression; generating a hierarchy list corresponding to the original logic expression, wherein the hierarchy list comprises a plurality of sub-...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
05.11.2021
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention provides a regular expression conversion method and device, equipment and a storage medium. The method comprises: obtaining an original logic expression; generating a hierarchy list corresponding to the original logic expression, wherein the hierarchy list comprises a plurality of sub-expressions arranged according to a preset sequence of logic hierarchies; and converting the original logic expression into a corresponding regular expression according to the hierarchical list and a preset meta-character mapping table. The original logic expression input by the user is automatically converted into the corresponding regular expression. The regular expression meeting user logic requirements is automatically generated, the generation speed is high, the accuracy is high, and the logic-level multi-layer nested complex regular expression can be generated. Moreover, a large number of regular expressions can be quickly generated, the timeliness requirement of online text matching can be met, text matching |
---|---|
Bibliography: | Application Number: CN202110742135 |