RegEx reference for AI agents

List of RegEx values in alphabetical order.


What's my plan?







All Suites

Team, Growth, Professional, Enterprise, or Enterprise Plus










Support

Team, Professional, or Enterprise










The functionality described in this article is being rolled
out to all Suite and Support plans from May 11 through June 12, 2026. You may not
see this functionality in your account yet. See this announcement for details.

List of RegEx values in alphabetical order.



Table 1.







Value
Description
Format




Affirmative
Customer enters anything starting with y or Y, five letters to show
affirmation


^[yY].{1,5}\b




credit_card
Preset in dashboard



CVV
CVV number


(CVV|CVV\s)\d{3}




DOB 1
Date of birth formatted as YYYY-MM-DD, YYYYMMDD


^\d{4}[.|-|\/]\d{2}[.|-|\/]\d{2}|^\d{8}




DOB 2
Date of birth formatted as DD/MM/YYYY


\d{1,2}[.|\-|\/]\d{1,2}[.|\-|\/]\d{2,4}\b




email
Preset in dashboard



IBAN
Preset in dashboard



mobileNumber
Mobile number, with or without prefix


^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}([-\s.]?[0-9]){4,10}$




Negative
Customer enters anything starting with n or N, five letters to show
negation


^[nN].{1,5}\b




orderNumber
8 or 16 digits, can include letters or numbers or both


[0-9a-zA-Z]{8}|[0-9a-zA-Z]{16}




PIN
Four digits, numbers only


(\s{1})?\d{4}




phoneNumber
Phone number, for example US, CA such as +1 NXX-NXX-XXXX or 01 NXX-NXX-XXXX or
001 NXX-NXX-XXXX


(\d{0,3})?[ ()]?(?:[- ()]?\d[- ()]?){7}




URL
Universal URL regEx


((http|https)://)?[a-zA-Z0-9./?:-=#]+.([a-zA-Z]){2,6}([a-zA-Z0-9.&/?:-=#])*




ZIP code
Zip code, for example Canada, such as A2B 3C4


(\d{5}([ -]\d{4})?|[A-Z]\d[A-Z][ -]?\d[A-Z]\d)








{
"@context": "https://schema.org",
"@type": "TechArticle",
"@id": "https://support.zendesk.com/hc/en-us/articles/8357756811162",
"url": "https://support.zendesk.com/hc/en-us/articles/8357756811162",
"headline": "RegEx reference for AI agents",
"description": "You can use predefined regular expressions to identify and validate various data formats such as dates, phone numbers, and order numbers in AI agent interactions.",
"articleSection": "Customizing AI agents",
"datePublished": "2024-11-11T22:25:10+00:00",
"dateModified": "2026-05-12T17:43:28.356278+00:00",
"inLanguage": "en-US",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://support.zendesk.com/hc/en-us/articles/8357756811162"