Controlling What Information is Allowed

Note: This feature is only available to advanced publishers. Please contact Recombo Support for further information.

To help ensure the correct information is entered (and in your preferred format) you can use regular expressions. Regular expressions are a validation tool that checks that the entered information matches a specified pattern. For more information about what a regular expression is please read this Wikipedia Article.

 

^100$ Must be the exact String '100'
^[0-9]{3}[- ][0-9]{2}[- ][0-9]{4}|[0-9]{9}$ Validate US SSN
^[0-9]{3}[- ][0-9]{3}[- ][0-9]{3}|[0-9]{9}$ Validate CDN SIN
\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) Sample date validation e.g. 2011-12-12
/^[-+]?[0-9]\d{0,1}(\.\d{1,2})?%?$/ Percent format - negatives are allowed
^200$|^100$ Must be '100' or '200'

Regular Expressions are a tricky thing to learn how to create, a great free third party tool Recombo found that helps to test and build Regular Expressions can be found here. This link is to an external site not supported by Recombo and has been provided for information purposes only.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.