RegEx - Input Validation
The RegEx metadata type can be used to validate and enforce that users enter a value in a specific format.
For example, if a production ID must follow a strict rule β one uppercase letter followed by five digits β this metadata type can ensure that only valid IDs are accepted.
The corresponding regular expression is:
^[A-Z]\d{5}$This expression enforces the following:
^β start of the string[A-Z]β exactly one uppercase letter\d{5}β exactly five digits (0β9)$β end of the string
As a result, valid values would include A12345 or Z00001, while entries such as AA12345, a12345, or A1234 would be rejected.
To configure this, a regular expression (regex) pattern must be defined. If you need help creating a suitable expression, you can use online generators or tools such as: https://www.leiga.com/free-tools/regex-expression-generator
Enter the regex pattern in the Default Value field.
The Value field should remain empty. The displayed warning can be ignored.

Limitation
If a RegEx metadata type is assigned to either a group or a metadata set, the field must always be filled with a valid value. This metadata type effectively behaves as a mandatory field, because the input validation prevents saving empty or invalid values. Disabling this requirement is not possible.
Last updated