RegEx reference for advanced AI agents

<div class="body">
<div class="article-banners">
<div id="docs-wmp-link">
<a href="https://support.zendesk.com/hc/en-us/articles/5411234991258-plan" rel="noopener" target="_blank">What's my plan?</a>
</div>
<div class="article-banner" id="addon_ai-agents-adv">
<table style="margin-left: 0px; margin-right: auto;">
<tbody>
<tr>
<td>
<strong>Add-on</strong>
</td>
<td>AI agents - Advanced</td>
</tr>
</tbody>
</table>
</div>
</div>
<p class="p">
The following table provides a list of RegEx values in alphabetical order.
</p>
<p>However, note the following limitations:</p>
<ul>
<li>
Lookahead and lookbehind syntax is not supported. See
<a href="https://support.zendesk.com/hc/en-us/articles/9546537135514">Why is my customized RegEX not working in AI agents - Advanced?</a>
</li>
<li>
Start-of-line (^) and end-of-line ($) anchors are not supported.
</li>
</ul>
<div class="p">
<div class="tablenoborder">
<table border="1" cellpadding="4" cellspacing="0" class="table" frame="border" id="topic_qjl_5dh_n2c__table_qfh_c2h_n2c" rules="all" summary="" style="margin-left: 0px; margin-right: auto;">
<caption>
<span class="tablecap"><span class="table--title-label">Table 1. </span></span>
</caption>
<colgroup>
<col style="width: 33.33333333333333%;">
<col style="width: 33.33333333333333%;">
<col style="width: 33.33333333333333%;">
</colgroup>
<thead class="thead" style="text-align: left;">
<tr class="row">
<th class="entry cellrowborder" id="d87e43" style="vertical-align: top;">Value</th>
<th class="entry cellrowborder" id="d87e46" style="vertical-align: top;">Description</th>
<th class="entry cellrowborder" id="d87e49" style="vertical-align: top;">Format</th>
</tr>
</thead>
<tbody class="tbody">
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">Affirmative</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">
Customer enters anything starting with y or Y, five
letters to show
affirmation
</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">^[yY].{1,5}\b</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">credit_card</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Preset in dashboard</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;"> </td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">CVV</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">CVV number</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">(CVV|CVV\s)\d{3}</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">DOB 1</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Date of birth formatted as YYYY-MM-DD, YYYYMMDD</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">^\d{4}[.|-|\/]\d{2}[.|-|\/]\d{2}|^\d{8}</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">DOB 2</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Date of birth formatted as DD/MM/YYYY</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">\d{1,2}[.|\-|\/]\d{1,2}[.|\-|\/]\d{2,4}\b</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">email</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Preset in dashboard</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;"> </td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">IBAN</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Preset in dashboard</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;"> </td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">mobileNumber</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Mobile number, with or without prefix</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}([-\s.]?[0-9]){4,10}$</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">Negative</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">
Customer enters anything starting with n or N, five
letters to show
negation
</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">^[nN].{1,5}\b</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">orderNumber</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">8 or 16 digits, can include letters or numbers or both</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">[0-9a-zA-Z]{8}|[0-9a-zA-Z]{16}</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">PIN</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Four digits, numbers only</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">(\s{1})?\d{4}</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">phoneNumber</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">
Phone number, for example US, CA such as +1 NXX-NXX-XXXX
or 01 NXX-NXX-XXXX or
001 NXX-NXX-XXXX
</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">(\d{0,3})?[ ()]?(?:[- ()]?\d[- ()]?){7}</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">URL</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Universal URL regEx</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">((http|https)://)?[a-zA-Z0-9./?:-=#]+.([a-zA-Z]){2,6}([a-zA-Z0-9.&amp;/?:-=#])*</code>
</p>
</td>
</tr>
<tr class="row">
<td class="entry cellrowborder" headers="d87e43" style="vertical-align: top;">ZIP code</td>
<td class="entry cellrowborder" headers="d87e46" style="vertical-align: top;">Zip code, for example Canada, such as A2B 3C4</td>
<td class="entry cellrowborder" headers="d87e49" style="vertical-align: top;">
<p class="p">
<code class="ph codeph">(\d{5}([ -]\d{4})?|[A-Z]\d[A-Z][ -]?\d[A-Z]\d)</code>
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>