Unlock instant, AI-driven research and patent intelligence for your innovation.

Regular expression matching method and device, electronic equipment and storage medium

A matching method and technology of a matching device, applied in the computer field, can solve problems such as uncontrollable length of regular expressions, memory overflow errors, and memory overflows.

Active Publication Date: 2020-05-19
BEIJING QIANXIN TECH +1
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a regular expression matching method, device, electronic equipment, and storage medium to solve the problem in the prior art that the length of the regular expression is uncontrollable. When using large-scale regular expressions, the filter needs a lot of space to store the "effective fingerprint" of the regular expression, which is prone to memory overflow and memory overflow errors.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Regular expression matching method and device, electronic equipment and storage medium
  • Regular expression matching method and device, electronic equipment and storage medium
  • Regular expression matching method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] Before introducing this embodiment, a brief background introduction to the method provided by this embodiment is given first. figure 1 For the schematic flow diagram of the deep detection of the network provided by this embodiment, see figure 1 , to carry out in-depth detection after obtaining the string to be matched from the network...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a regular expression matching method and a device, electronic equipment and a storage medium. The method comprises the steps of after character strings identifying each regular expression are extracted, dividing the character strings into fixed-length substrings; and filtering the target regular expression with good matching with the to-be-matched characterstring through the fixed-length substring, and further determining whether the to-be-matched character string is network attack data or viruses through the target regular expression. Since the character string is divided into the fixed-length sub-strings, only all possible character strings of which the length is the fixed-length sub-strings and which are composed of characters need to be storedin the filter. Compared with the mode of storing each character string with the complete regular expression, the required storage space is greatly reduced, the maximum storage space required by all possible character strings of the fixed-length substring is controllable, and the memory overflow error of the filter can be avoided.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a regular expression matching method, device, electronic equipment and storage medium. Background technique [0002] Massive (tens of millions) regular expression matching engines are usually implemented using filtering methods, including two core modules: "filter" and "verifier". The "filter" is realized by the extracted effective fingerprint construction automaton, and the "verifier" is realized by the NFA-DFA regular expression engine. However, the existing "effective fingerprint" extraction algorithms are all aimed at the key substring of the "connection" operation, without considering the "or" operation of regular expressions, so the filtering ability is low, and the length of the "effective fingerprint" is uncontrollable. Prone to memory overflow errors. [0003] Therefore, in the actual application process, since the length of the regular expression is uncontrollable, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/903G06F16/951G06F16/2455
CPCG06F16/90344G06F16/951G06F16/24564
Inventor 王彬覃永靖程诗尧马江波
Owner BEIJING QIANXIN TECH