Regex, or regular expression, is a pattern-matching method used to check whether text entered in a field follows a required format. It can be used in layout rules and validation rules to control how users provide information.
For example, a rule can require an order number to contain only alphanumeric characters, such as ORD123, rather than allowing unrelated symbols or formats.