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. For more examples and explanations of Regular Expression syntax, please see our KB article How to use Regular Expressions for custom input validation.REGEX Description Example That Matches Example That Doesn't Match ^BOOK Value must start with the letters "BOOK" BOOKED BLUEBOOK ING$ Value must end with the letters "ING" BOOKING BOOKED BOOKING Value must contain "BOOKING" YOUR BOOKING DETAILS YOU BOOKED ^BOOKING$ Value must be exactly "BOOKING" BOOKING YOUR BOOKING \d Value must contain a number (digit) 2 BOOKINGS TWO BOOKINGS \D Value must not contain a number (digit) TWO BOOKINGS 2 BOOKINGS ^BOOK\d\d$ Value must be exactly "BOOK", followed by two single digit numbers BOOK43 BOOKING43
Glossary » REGEX