KB Articles

KB Article # 10274

Topic/Category: Validation

Ephesoft Version: 3x, 4x

Issue: How Do You Make An Index Field Optional During Validation?

Analysis:

Say you want to create a regular expression to validate with specific reges rules AND blank values. How would you do so?

Solution:
Combine your regular expression with the regular expression for blank(empty/null) space.
This REGEX will validate BLANK:

 ^\s*$

 

Say you want to accept yes, no or empty space as a validation rule. The following would apply:

 yes|no|^\s*$

 

< Back|KB Main Page | Next KB Article >

Was this article helpful to you?

Walter Lee

Comments are closed.