<?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: Custom app-id with regex for alphanumeric  that limits to 10 characters in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235546#M67529</link>
    <description>&lt;P&gt;If i am trying to create a regex that match any 10 alplanumeric characters whenever i see an 7 byte anchor, example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whenever i sees blablaa, i want to also match the 10 alphanumeric characters following it, how would the regex looks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;had tried the following,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(blablaa).*(.([A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]).).*&lt;/P&gt;&lt;P&gt;(blablaa).*(.([A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]).)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(blablaa)([A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i noticed is that it is matching no matter how many alphanumeric characters following it.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 16:00:50 GMT</pubDate>
    <dc:creator>chtoh82</dc:creator>
    <dc:date>2018-10-16T16:00:50Z</dc:date>
    <item>
      <title>Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235435#M67506</link>
      <description>&lt;P&gt;Am trying to create an app id that identifies a particular&amp;nbsp; pattern that only be 10 characters long and must be alphanumeric, had tried various syntax but seems not to be accepted as a correct pattern with the message that the expression is not at least 7 bytes. Anyone whom have such experiences can share the the correct expression syntax? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is what I've tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]&lt;/P&gt;&lt;P&gt;.([a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9])&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.([a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9])*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(.([a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]))&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 04:04:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235435#M67506</guid>
      <dc:creator>chtoh82</dc:creator>
      <dc:date>2018-10-16T04:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235513#M67523</link>
      <description>&lt;P&gt;The system needs&amp;nbsp;7&amp;nbsp;bytes that are not regular expression fields. The [a-zA-Z0-9] text is an expression, so it is not valid. You would need something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;blahbla[a-zA-Z0-9][a-zA-Z0-9]...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the custom objects (data patterns) page, even though you're creating an app the same requirements apply:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.paloaltonetworks.com/documentation/71/pan-os/web-interface-help/objects/objects-custom-objects-data-patterns" target="_blank"&gt;https://www.paloaltonetworks.com/documentation/71/pan-os/web-interface-help/objects/objects-custom-objects-data-patterns&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="xml_level-3_10 xml parbase"&gt;&lt;DIV class="level-3"&gt;&lt;STRONG&gt;Syntax for Data Patterns&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="xml parbase xml_body_11"&gt;&lt;DIV class="body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="body"&gt;When adding a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;new pattern (regular expression), the following general requirements apply:&lt;/DIV&gt;&lt;DIV class="body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="xml parbase xml_bulletList_12"&gt;&lt;UL&gt;&lt;LI&gt;The pattern must have string of at least 7 bytes to match. It can contain more than 7 bytes, but not fewer.&lt;/LI&gt;&lt;LI&gt;The string match may or may not be case-sensitive, depending on which decoder is being used. When case-sensitivity is required, you would need to define patterns for all of the possible strings in order to match all variations of a term. For example, if you wanted to match any documents designated as confidential, you would need to create a pattern for “confidential”, “Confidential”, and “CONFIDENTIAL”.&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:59:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235513#M67523</guid>
      <dc:creator>gwesson</dc:creator>
      <dc:date>2018-10-16T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235546#M67529</link>
      <description>&lt;P&gt;If i am trying to create a regex that match any 10 alplanumeric characters whenever i see an 7 byte anchor, example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whenever i sees blablaa, i want to also match the 10 alphanumeric characters following it, how would the regex looks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;had tried the following,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(blablaa).*(.([A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]).).*&lt;/P&gt;&lt;P&gt;(blablaa).*(.([A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]).)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(blablaa)([A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i noticed is that it is matching no matter how many alphanumeric characters following it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 16:00:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235546#M67529</guid>
      <dc:creator>chtoh82</dc:creator>
      <dc:date>2018-10-16T16:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235591#M67540</link>
      <description>&lt;P&gt;It looks like you've excluded all of the lower case matches from your groups (your first example had &lt;FONT face="courier new,courier"&gt;a-zA-Z0-9&lt;/FONT&gt;). The parenthesis are also not needed, since you're not storing the values to capture groups. Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;blablaa[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 17:49:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235591#M67540</guid>
      <dc:creator>gwesson</dc:creator>
      <dc:date>2018-10-16T17:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235688#M67557</link>
      <description>&lt;P&gt;Thanks for the advice, i tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;blaabla[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it matches to any alphanumeric that has 10 chracters and above, however, my use case is to limit it to only 10 characters, can this be done?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 05:12:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235688#M67557</guid>
      <dc:creator>chtoh82</dc:creator>
      <dc:date>2018-10-17T05:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235690#M67558</link>
      <description>&lt;P&gt;I think i partially solved it by adding another anchor at the back,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;blaabla[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]blaaa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank case, it needs to match exactly to 10 characters, however, not sure if&amp;nbsp; there is a way to make it into a range of from 1 to 10 characters..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 05:36:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/235690#M67558</guid>
      <dc:creator>chtoh82</dc:creator>
      <dc:date>2018-10-17T05:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom app-id with regex for alphanumeric  that limits to 10 characters</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/413730#M93006</link>
      <description>&lt;P&gt;you can use "[\w]{1,10}" to match range from 1 to 10 alphanumeric characters&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 02:13:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-app-id-with-regex-for-alphanumeric-that-limits-to-10/m-p/413730#M93006</guid>
      <dc:creator>WPamungkas</dc:creator>
      <dc:date>2021-06-17T02:13:22Z</dc:date>
    </item>
  </channel>
</rss>

