Example with RegEx Pattern

Regex, short for Regular Expression, is a sequence of characters that forms a search pattern.
Regex patterns consist of a combination of normal characters and special characters called metacharacters. These metacharacters define rules and constraints for matching patterns in the text.
For example, let's consider a simple regex pattern: \d{3}-\d{3}-\d{4}. This pattern represents a common format for a phone number in the form of three digits, followed by a hyphen, three more digits, another hyphen, and finally, four digits. So, this pattern can match strings like "123-456-7890" or "987-654-3210".
Here's a breakdown of the pattern:
\drepresents a digit character.{3}specifies that the preceding element (in this case,\d) should occur exactly three times.-matches the hyphen character literally.
When assigning semantics, the Regex ID pattern is also employed to generate a new pattern.
When creating a new Regex pattern, the regex for a constraint such as an IP address or ID is utilized, and the corresponding code is inserted into the regex pattern for the field.
The generated regex pattern is assigned to the semantic field using the corresponding code.


in this example, we used an IP address for assigning a regex pattern.
Regex Pattern for IP address : ^(?:\d{1,3}\.){3}\d{1,3}$
This regex pattern can be used to validate and match IP addresses in the format of x.x.x.x, where each x represents a number from 0 to 255.

Once you have assigned the strategy and entered the regex pattern in the respective fields, you can click on the "Save" button to add the new pattern. By saving the pattern, it will be associated with the selected semantic category, and a success popup will appear indicating the pattern has been added
Last updated