Regular Expression (REGEX)
What is a Regular Expression (REGEX)?
"REGEX" is a shortened form of the term "Regular Expression".
A regular expression is a sequence of characters that specifies a match pattern in text.
Regular expressions are often used in text editors, programming languages, and other software applications to search for and manipulate text.
In MIDAS, Regular Expressions can be used to validate entries into custom input fields.
For instance, you could use a Regular Expression to ensure that an input is of a certain length, only contains certain characters, or matches a specific format.
Regular expressions can be very powerful and versatile tools. However, they can also be difficult to learn and use.Here are some simple Regular Expression examples:
|Example That Matches
|Example That Doesn't Match
|Value must start with the letters "BOOK"
|Value must end with the letters "ING"
|Value must contain "BOOKING"
|YOUR BOOKING DETAILS
|Value must be exactly "BOOKING"
|Value must contain a number (digit)
|Value must not contain a number (digit)
|Value must be exactly "BOOK", followed by two single digit numbers
For more examples and explanations of Regular Expression syntax, please see our KB article How to use Regular Expressions for custom input validation.
← Back to Glossary