Regular expression generation method, device and computer equipment

An expression and expression matching technology, applied in the computer field, can solve problems such as low accuracy and low efficiency of regular expression generation, and achieve the effect of ensuring accuracy and improving development efficiency

Active Publication Date: 2022-05-13
大箴(杭州)科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the application provides a method, device and computer equipment for generating regular expressions, which can be used to solve the current technical problems of low efficiency and low accuracy in generating regular expressions

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 generation method, device and computer equipment
  • Regular expression generation method, device and computer equipment
  • Regular expression generation method, device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Hereinafter, the present application will be described in detail with reference to the accompanying drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0064] Aiming at the current technical problems of low efficiency and low accuracy in generating regular expressions, this application provides a method for generating regular expressions, such as figure 1 As shown, the method includes:

[0065] 101. Determine the original text that needs to be matched by the regular expression.

[0066] In specific application scenarios, the method of batch processing can be adopted. In the same batch, there may be multiple original texts that need to be matched by regular expressions. When generating regular expressions, many unmatched original texts can be Extract one of them to start regular expression development, that is, further perform the...

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 present application discloses a method, device and computer equipment for generating regular expressions, which relate to the field of computer technology and can solve the technical problems of low generation efficiency and low accuracy of current regular expressions. The method includes: determining the original text that needs to be matched by the regular expression; splitting the original text into a first text fragment and a second text fragment, the first text fragment is reserved for matching with the regular expression generation rule A text fragment, the second text fragment is a text fragment that needs to be replaced with a wildcard; the second text fragment is replaced with a target wildcard according to a preset replacement rule; the first text fragment and the target wildcard are replaced according to the The arrangement order of the text fragments in the original text is merged to generate the regular expression of the original text.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device and computer equipment for generating regular expressions. Background technique [0002] Regular expressions provide developers with a powerful tool for manipulating and parsing text. Usually used to retrieve or replace text that matches preset patterns or rules. Today, many programming languages ​​support string operations using regular expressions, and regular expressions have become mainstream tools used by major programming languages ​​and operating systems. [0003] However, in the existing regular expression development process, users need to manually write a large amount of code, and the developed regular expressions need to be manually verified for conflicts, which leads to low efficiency and low accuracy of regular expression generation. Contents of the invention [0004] In view of this, the present application provides a regular express...

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 Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/427
Inventor 刘一鹏
Owner 大箴(杭州)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products