<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ISE regex in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336286#M550085</link>
    <description>&lt;P&gt;Further to the previous reply, I am not sure what part of ISE you are using regex, but if it's in the Policy Sets, then I have found that using the MATCHES operator allows me to use standard regex syntax.&amp;nbsp; There were some bugs in ISE 2.2 - but so far in ISE 2.3 the regex is reliable.&amp;nbsp; In my case I use it a lot in my TACACS authentication policies, e.g.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tacacs.png" style="width: 638px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/7895i9CECDFA1D18159A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="tacacs.png" alt="tacacs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can add one small caveat when using ISE for TACACS+ command sets.&amp;nbsp; Have a look at this posting over at the ISE Community page - it explains that TACACS+ commands use &lt;STRONG&gt;wildcards&lt;/STRONG&gt;, and their arguments use &lt;STRONG&gt;regex&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.cisco.com/thread/86989" target="_blank"&gt;https://communities.cisco.com/thread/86989&lt;/A&gt; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Univers-CondensedBold; font-size: 10.5pt;"&gt;&lt;STRONG&gt;Wildcards and Regex in Command Sets&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;A command line comprises the command and zero or more arguments. When Cisco ISE receives a command line (request), it handles the command and its arguments in &lt;STRONG&gt;different ways:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-family: ArialUnicodeMS; font-size: 10pt;"&gt;• &lt;/SPAN&gt;&lt;SPAN style="font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;It matches the command in the request with the commands specified in the command set list using the wildcard matching paradigm.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;Example: Sh?? or S*&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-family: ArialUnicodeMS; font-size: 10pt;"&gt;• &lt;/SPAN&gt;&lt;SPAN style="font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;It matches the arguments in the request with the arguments specified in the command set list using r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;egular expressions (regex) matching paradigm.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 22:50:57 GMT</pubDate>
    <dc:creator>Arne Bier</dc:creator>
    <dc:date>2018-02-22T22:50:57Z</dc:date>
    <item>
      <title>ISE regex</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336031#M550081</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you know a documentation for regex syntax in policy sets on ISE 2.3?&lt;/P&gt;
&lt;P&gt;is it like the syntax on cisco routers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br Matthias&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:46:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336031#M550081</guid>
      <dc:creator>wess</dc:creator>
      <dc:date>2020-02-21T18:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: ISE regex</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336250#M550083</link>
      <description>&lt;P&gt;I found this in a guide related to ISE policies and WLC hopefully it gives you an idea on the format for regex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;REGEX Examples&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;'Starts with'&lt;/STRONG&gt;—for example, use the REGEX value of&lt;STRONG&gt; ^(Acme).*&lt;/STRONG&gt;—this condition is configured as CERTIFICATE:Organization MATCHES 'Acme' (any match with a condition that starts with "Acme").&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;'Ends with'&lt;/STRONG&gt;—for example, use the REGEX value of .&lt;STRONG&gt;*(mktg)$&lt;/STRONG&gt;—this condition is configured as CERTIFICATE:Organization MATCHES 'mktg' (any match with a condition that ends with "mktg").&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;'Contains'&lt;/STRONG&gt;—for example, use the REGEX value of .&lt;STRONG&gt;*(1234).*&lt;/STRONG&gt;—this condition is configured as CERTIFICATE:Organization MATCHES '1234' (any match with a condition that contains "1234", such as Eng1234, 1234Dev, and Corp1234Mktg).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;'Does not start with'&lt;/STRONG&gt;—for example, use the REGEX value of&lt;STRONG&gt; ^(?!LDAP).*&lt;/STRONG&gt;—this condition is configured as CERTIFICATE:Organization MATCHES 'LDAP' (any match with a condition that does not start with "LDAP", such as usLDAP or CorpLDAPmktg).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Original document here&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="https://www.cisco.com/c/en/us/support/docs/security/identity-services-engine/115734-ise-policies-ssid-00.html" target="_self"&gt;https://www.cisco.com/c/en/us/support/docs/security/identity-services-engine/115734-ise-policies-ssid-00.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:23:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336250#M550083</guid>
      <dc:creator>Ben Walters</dc:creator>
      <dc:date>2018-02-22T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: ISE regex</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336286#M550085</link>
      <description>&lt;P&gt;Further to the previous reply, I am not sure what part of ISE you are using regex, but if it's in the Policy Sets, then I have found that using the MATCHES operator allows me to use standard regex syntax.&amp;nbsp; There were some bugs in ISE 2.2 - but so far in ISE 2.3 the regex is reliable.&amp;nbsp; In my case I use it a lot in my TACACS authentication policies, e.g.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tacacs.png" style="width: 638px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/7895i9CECDFA1D18159A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="tacacs.png" alt="tacacs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can add one small caveat when using ISE for TACACS+ command sets.&amp;nbsp; Have a look at this posting over at the ISE Community page - it explains that TACACS+ commands use &lt;STRONG&gt;wildcards&lt;/STRONG&gt;, and their arguments use &lt;STRONG&gt;regex&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.cisco.com/thread/86989" target="_blank"&gt;https://communities.cisco.com/thread/86989&lt;/A&gt; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Univers-CondensedBold; font-size: 10.5pt;"&gt;&lt;STRONG&gt;Wildcards and Regex in Command Sets&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;A command line comprises the command and zero or more arguments. When Cisco ISE receives a command line (request), it handles the command and its arguments in &lt;STRONG&gt;different ways:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-family: ArialUnicodeMS; font-size: 10pt;"&gt;• &lt;/SPAN&gt;&lt;SPAN style="font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;It matches the command in the request with the commands specified in the command set list using the wildcard matching paradigm.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;Example: Sh?? or S*&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-family: ArialUnicodeMS; font-size: 10pt;"&gt;• &lt;/SPAN&gt;&lt;SPAN style="font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;It matches the arguments in the request with the arguments specified in the command set list using r&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: TimesNewRomanPSMT; font-size: 10pt;"&gt;egular expressions (regex) matching paradigm.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 22:50:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336286#M550085</guid>
      <dc:creator>Arne Bier</dc:creator>
      <dc:date>2018-02-22T22:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: ISE regex</title>
      <link>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336431#M550178</link>
      <description>&lt;P&gt;Thanks Ben and Arne!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also found the following in the ISE admin guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The “Matches” operator supports and uses regular expressions (REGEX) not wildcards. &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;You must use the “equals” operator for straight forward comparison. “Contains” operator can be used for multi-value attributes.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;“Matches” operator should be used for regular expression comparison.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;When “Matches” operator is used, regular expression will be interpreted for both static and dynamic values.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looks like the normal regex syntak (&lt;A href="https://en.wikipedia.org/wiki/Regular_expression" target="_blank"&gt;https://en.wikipedia.org/wiki/Regular_expression&lt;/A&gt;) is supported&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:03:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ise-regex/m-p/3336431#M550178</guid>
      <dc:creator>wess</dc:creator>
      <dc:date>2018-02-23T07:03:37Z</dc:date>
    </item>
  </channel>
</rss>

