# US 2018/0321921 A1 · Systems and methods for customizable regular expression generation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0321921 A1
- Document ID: US20180321921A1
- Status: Published application
- Kind: A1
- Application number: 15/584,977
- Filed: 2017-05-02
- Published: 2018-11-08
- Earliest claimed: 2017-05-02
- Assignees: Mastercard International Incorporated
- Applicants: MasterCard International Incorporated
- Inventors: Ravi Teja Prabhala Venkata
- Web page: https://patentgrep.com/patent/US20180321921A1

## CPC

- G06F 8/33: Intelligent editors
- G06F 8/34: Graphical or visual programming
- G06F 16/332: Query formulation
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A regular expression generator (REG) computing device for generating customized regular expressions readable by a computing device is provided. The REG computing device is configured to receive an input string including a plurality of characters for use in generating a regular expression. The REG computing device is also configured to generate character patterns for at least one character of the plurality of characters. The REG computing device is further configured to display, for the at least one character, the character patterns. The REG computing device is also configured to assign, based on input received via a user interface, a first character pattern of the character patterns to the at least one character. The REG computing device is further configured to generate the regular expression using the first character pattern. The REG computing device is also configured to display the regular expression on the user interface.

## Claims

### Claim 1

A regular expression generator (REG) computing device for generating customized regular expressions readable by a computing device, the REG computing device including a processor, a display device, and a memory device, the REG computing device configured to:
receive an input string including a plurality of characters for use in generating a regular expression;
display the input string as a first array of character positions on the display device, wherein each character position of the first array is associated with a single character of the plurality of characters;
for each character position of the first array of character positions:
generate one or more character patterns for the single character associated with the character position;
display the one or more character patterns as an array of pattern options, wherein the array of pattern options is oriented on the display device to be approximately aligned with the associated character position; and
assign, based on an input received via a user interface, a user-chosen character pattern of the one or more character patterns to the single character;
generate the regular expression using the user-chosen character pattern for each character position; and
display the regular expression on the display device.

### Claim 2 (depends on 1)

A device in accordance with claim 1, further configured to:
receive at least one test input string that corresponds to a user preference;
validate the regular expression using the test input string, including comparing the first character pattern to at least one test input character from the test input string; and
display a regular expression validation message on the user interface.

### Claim 3 (depends on 1)

A device in accordance with claim 1,
wherein generating the regular expression further includes concatenating each user-chosen character pattern based on an order of each associated character position within the first array of character positions.

### Claim 4 (depends on 1)

A device in accordance with claim 1, wherein a first character pattern of the one or more character patterns includes one or more of an alphabetical character pattern, a numerical character pattern, and a special character pattern.

### Claim 5

(canceled)

### Claim 6 (depends on 1)

A device in accordance with claim 1, further configured to:
receive a parameter input for the regular expression via the user interface, wherein the parameter input includes one or more of a minimum length parameter, a maximum length parameter, and a regular expression type parameter, and wherein the regular expression type parameter corresponds to a type of the regular expression to be generated.

### Claim 7 (depends on 1)

A device in accordance with claim 1, further configured to:
receive a language parameter input via the user interface, wherein the language parameter input includes a programming language identifier;
access, from the memory device, one or more language files corresponding to the programming language identifier, wherein the one or more language files define a syntax corresponding to the programming language identifier; and
generate the regular expression using the one or more language files, including customizing the regular expression to comply with the syntax.

### Claim 8

A computer-implemented method for generating customized regular expressions readable by a computing device, the method implemented using a regular expression generator (REG) computing device including a processor, a display device, and a memory device, the method comprising:
receiving, by the REG computing device, an input string including a plurality of characters for use in generating a regular expression;
displaying the input string as a first array of character positions on the display device, wherein each character position of the first array is associated with a single character of the plurality of characters;
for each character position of the first array of character positions:
generating one or more character patterns for the single character associated with the character position;
displaying the one or more character patterns as an array of pattern options, wherein the array of pattern options is oriented on the display device to be approximately aligned with the associated character position; and
assigning, based on an input received via a user interface, a user-chosen character pattern of the one or more character patterns to the single character;
generating the regular expression using the user-chosen character pattern for each character position; and
displaying the regular expression on the display device.

### Claim 9 (depends on 8)

A method in accordance with claim 8, further comprising:
receiving at least one test input string that corresponds to a user preference;
validating the regular expression using the test input string, including comparing the first character pattern to at least one test input character from the test input string; and
displaying a regular expression validation message on the user interface.

### Claim 10 (depends on 9)

A method in accordance with claim 9,
wherein generating the regular expression further includes concatenating each user-chosen character pattern based on an order of each associated character position within the first array of character positions.

### Claim 11 (depends on 8)

A method in accordance with claim 8, wherein a first character pattern of the one or more character patterns includes one or more of an alphabetical character pattern, a numerical character pattern, and a special character pattern

### Claim 12

(canceled)

### Claim 13 (depends on 8)

A method in accordance with claim 8, further comprising:
receiving a parameter input for the regular expression via the user interface, wherein the parameter input includes one or more of a minimum length parameter, a maximum length parameter, and a regular expression type parameter, and wherein the regular expression type parameter corresponds to a type of the regular expression to be generated.

### Claim 14 (depends on 8)

A method in accordance with claim 8, further comprising:
receiving a language parameter input via the user interface, wherein the language parameter input includes a programming language identifier;
accessing, from the memory device, one or more language files corresponding to the programming language identifier, wherein the one or more language files define a syntax corresponding to the programming language identifier; and
generating the regular expression using the one or more language files, including customizing the regular expression to comply with the syntax.

### Claim 15

A non-transitory computer readable medium that includes computer executable instructions for generating customized regular expressions readable by a computing device, wherein when executed by a regular expression generator (REG) computing device including a processor, a display device, and a memory device, the computer executable instructions cause the REG computing device to:
receive an input string including a plurality of characters for use in generating a regular expression;
display the input string as a first array of character positions on the display device, wherein each character position of the first array is associated with a single character of the plurality of characters;
for each character position of the first array of character positions:
generate one or more character patterns for the single character associated with the character position;
display the one or more character patterns as an array of pattern options, wherein the array of pattern options is oriented on the display device to be approximately aligned with the associated character position; and
assign, based on an input received via a user interface, a user-chosen character pattern of the one or more character patterns to the single character;
generate the regular expression using the user-chosen character pattern; and
display the regular expression on the display device.

### Claim 16 (depends on 15)

A non-transitory computer readable medium in accordance with claim 15, wherein the computer-executable instructions further cause the REG computing device to:
receive at least one test input string that corresponds to a user preference;
validate the regular expression using the test input string, including comparing the first character pattern to at least one test input character from the test input string; and
display a regular expression validation message on the user interface.

### Claim 17 (depends on 15)

A non-transitory computer readable medium in accordance with claim 15, wherein
generating the regular expression further includes concatenating each user-chosen character pattern based on an order of each associated character position within the first array of character positions.

### Claim 18

(canceled)

### Claim 19 (depends on 15)

A non-transitory computer readable medium in accordance with claim 15, wherein the computer-executable instructions further cause the REG computing device to:
receive a parameter input for the regular expression via the user interface, wherein the parameter input includes one or more of a minimum length parameter, a maximum length parameter, and a regular expression type parameter, and wherein the regular expression type parameter corresponds to a type of the regular expression to be generated.

### Claim 20 (depends on 15)

A non-transitory computer readable medium in accordance with claim 15, wherein the computer-executable instructions further cause the REG computing device to:
receive a language parameter input via the user interface, wherein the language parameter input includes a programming language identifier;
access, from the memory device, one or more language files corresponding to the programming language identifier, wherein the one or more language files define a syntax corresponding to the programming language identifier; and
generate the regular expression using the one or more language files, including customizing the regular expression to comply with the syntax.
