<?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 CLI - Regex with &amp;quot;?&amp;quot; in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479029#M103838</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to use a Regex that contains "?", obviously that doesn't work because that automatically triggers the helper?&lt;/P&gt;&lt;P&gt;For example, I'm trying to filter results for a certain CLI command using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| match (?s)(word1.*?)(?=word2|$)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see that it contains multiple question marks, I'm not sure what I can do to get those through (if at all possible) and Palo documentation doesn't help.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 16:34:55 GMT</pubDate>
    <dc:creator>TigeRRR</dc:creator>
    <dc:date>2022-04-07T16:34:55Z</dc:date>
    <item>
      <title>CLI - Regex with "?"</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479029#M103838</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to use a Regex that contains "?", obviously that doesn't work because that automatically triggers the helper?&lt;/P&gt;&lt;P&gt;For example, I'm trying to filter results for a certain CLI command using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| match (?s)(word1.*?)(?=word2|$)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see that it contains multiple question marks, I'm not sure what I can do to get those through (if at all possible) and Palo documentation doesn't help.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:34:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479029#M103838</guid>
      <dc:creator>TigeRRR</dc:creator>
      <dc:date>2022-04-07T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: CLI - Regex with "?"</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479542#M103904</link>
      <description>&lt;DIV class=""&gt;&lt;DIV&gt;The regular expression syntax in PAN-OS® is similar to traditional regular expression engines but every engine is unique. The following table describes the syntax supported in PAN-OS.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Pattern Rules Syntax&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Description&lt;/DIV&gt;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Match any single character.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;STRONG&gt;Match the preceding character or expression 0 or 1 time. You must include the general expression inside parentheses.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;STRONG&gt;Example: (abc)?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that you are not putting the parenthesis around correctly perhaps.. word1.*?&amp;nbsp; should be&lt;STRONG&gt; (word1.*)?&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp; According the to docs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 00:26:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479542#M103904</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2022-04-11T00:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: CLI - Regex with "?"</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479680#M103921</link>
      <description>&lt;P&gt;Thanks, I did indeed try the suggested parenthesis thing before from the documentation but that didn't help, the "?" was still getting omitted.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:45:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cli-regex-with-quot-quot/m-p/479680#M103921</guid>
      <dc:creator>TigeRRR</dc:creator>
      <dc:date>2022-04-11T14:45:48Z</dc:date>
    </item>
  </channel>
</rss>

