Regular Expression Transformation for Message Filtering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Complex regular expressions consume significant processing resources due to their large and intricate nature, making them inefficient for tasks like filtering electronic messages or searching documents.

Innovation Solution

The technique involves transforming regular expressions into key terms and conditionally executing them by canonicalizing terms, which simplifies the processing by identifying essential key terms and preventing unnecessary execution based on their presence in the text.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If regular expressions are used to identify patterns in text, then pattern matching capability is improved, but processing resources are consumed excessively

Engineering Contradiction:
Improvepattern matching capabilityVSAvoidprocessing resources
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent segments a complex regular expression into multiple smaller sub-expressions or tokens. Each segment can be evaluated independently, allowing the system to process only relevant portions of the text rather than executing the entire complex regular expression, thereby reducing processing resource consumption while maintaining pattern matching capability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary analysis of the regular expression to identify key terms, patterns, or segments before actual text processing. This preliminary action allows the system to prepare evaluation criteria in advance, enabling faster and more efficient text matching without repeatedly processing the entire complex regular expression structure.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If complex regular expressions are executed to filter text, then filtering accuracy is improved, but execution time increases

Engineering Contradiction:
Improvefiltering accuracyVSAvoidexecution time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent divides the complex regular expression into separable segments that can be evaluated independently. This segmentation allows the system to execute only the necessary segments based on text content, maintaining filtering accuracy while significantly reducing execution time by avoiding unnecessary processing of irrelevant segments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements partial execution of regular expressions by evaluating segments conditionally. Instead of always executing the complete regular expression, the system performs partial action by executing only those segments that are relevant to the current text being processed, thereby reducing execution time while preserving filtering accuracy through selective segment evaluation.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If regular expressions are simplified by canonicalization, then processing efficiency is improved, but expression flexibility may be reduced

Engineering Contradiction:
Improveprocessing efficiencyVSAvoidexpression flexibility
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent applies canonicalization by changing parameters of regular expression segments, such as normalizing case, removing redundant escape characters, or standardizing syntax. These parameter changes simplify the segments for more efficient processing while the system maintains the ability to handle various text formats through the transformed segments, thus improving processing efficiency while preserving necessary flexibility.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS8892580B2Transformation of regular expressions
Publication Date: 2014.11.18 MICROSOFT TECHNOLOGY LICENSING LLC
  • US8892580B2 patent drawing
  • US8892580B2 patent drawing
  • US8892580B2 patent drawing

AI summary

Techniques to transform regular expressions are described. An apparatus may comprise a processor circuit and a key terms identifying module operative on the processor circuit to generate a set of one or more regular expression key terms from enabled features of a regular expression based on a set of configuration parameters, and filter one or more electronic messages using the set of regular expression key terms. Other embodiments are described and claimed.