Risk Cloud uses the standard JavaScript RegExp constructor for validating Field input values entered by end-users. Certain Field types (Number, Text, Text Area...ect.) allow the entry for a RegExp validation string which will check against the input value. 

Regular Expression Examples

For example, to create a validation that would require the user to enter the letter A, B, or C followed by 4 numbers you would enter the pattern validation string of 

^[A-C][0-9]{4}$

Common RegEx Examples

  1. 5 Digit Zip code: [0-9]{5} 

  2. Hyphen Separated US Phone Number: [2-9]\d{2}-\d{3}-\d{4} 

  3. Email Address: .+@.+\..+  

  4. Set a specific number of character for a code/ID field. For example this RegEx will require users to input exactly 9 numbers:  ^[0-9]{1,9}$ 

  5. Date in mm/dd/yyyy or mm-dd-yyyy format: 

((0[1-9])|(1[0-2]))[\/-]((0[1-9])|(1[0-9])|(2[0-9])|(3[0-1]))[\/-](\d{4})

http://www.w3schools.com/jsref/jsref_obj_regexp.asp 

https://regex101.com/

Did this answer your question?