|
|
|
|
Fields Support of Regular Expressions |
|
|
|
|
|
|
Purpose: Use regular expressions to constrain the type of Input entered in text fields. i.e. Use it to apply formatting rules such as: E-mail, Zip Code etc...
You can add/edit all text fields with regular expression:
Use regular expressions to constrain the type of Input entered in text fields:
Common Regular Expressions | Field | Expression | Format Samples | | Social Security Number | ^\d{3}-\d{2}-\d{4}$ | 111-11-1111 | | E-mail | ^([0-9a-zA-Z]([-\.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$ | someone@example.com | | URL | ^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$ | http://www.informup.com | | Non- negative integer | ^\d+$ | 0 986 | | Currency (non- negative) | ^\d+(\.\d\d)?$ | 1.00 | | Currency (positive or negative) | ^(-)?\d+(\.\d\d)?$ | 1.20 |
|
|
|
|
|
|