Iconics Security module has option to check the write values with RegEx.
If the entered data meets the regular expression condition, the value is entered into the register.
Examples:
^.* - you can input any amouth of any character
^[23] - you can input only character 2 or 3
^(23|24) - you can input only number 23 or 24