When using a “Wait for Response” ActionSet, you may need a more complicated rule to determine if a contact’s response is valid, such as validating an ID number or coupon code. Regular expressions (regex) are a standard used to describe an acceptable submission format. A great resource is Regex101, which allows you to test and debug regular expressions.

For example, say we are asking someone to enter a serial number for a device they are registering. 

Valid serial numbers must begin with the letter "U" and be exactly nine digits, so we can match the serial numbers using:

Note that regular expressions matches are case insensitive, so you do not need to put different regex based on case.

Go Back: Wait for the Contact to Respond