Making an Index Field Optional During Validation
Applies to: Ephesoft Transact 4.5.0.0 and above
How do you create a regular expression to allow blank values as an option during validation?
Regular Expression
Combine your regular expression with the regular expression for a blank (empty/null) space using the pipe symbol ( | ).
This regex validates blank spaces:
^\s*$
Example:
The following regex will accept “yes”, “no” or empty space as a validation rule.
yes|no|^\s*$