<?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: Pipe a command and using match regular expressions in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201499#M59555</link>
    <description>&lt;P&gt;Thank you so much Greg.&lt;/P&gt;&lt;P&gt;They really need to improve their documentation in this part. And I need to improve my brain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can't believe I did not try that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Patrik&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 01:05:20 GMT</pubDate>
    <dc:creator>epacke</dc:creator>
    <dc:date>2018-02-21T01:05:20Z</dc:date>
    <item>
      <title>Pipe a command and using match regular expressions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201247#M59504</link>
      <description>&lt;P&gt;Dear experts!&lt;/P&gt;&lt;P&gt;I'm trying to compile a match which matches the following regexp:&amp;nbsp;(debug|monitor).(global|level|pcap|detail\.enable) but it seems like it does not support capturing groups. I've searched for a manual for the match command but struck out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end game here is to use it to filter show system state to capture lines &lt;STRONG&gt;containing&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;debug.global&lt;/LI&gt;&lt;LI&gt;debug.level&lt;/LI&gt;&lt;LI&gt;debug.pcap&lt;/LI&gt;&lt;LI&gt;monitor.detail.enable&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Looks like capture lists is supported, ie. &lt;STRONG&gt;show system state | match debug.[glp]&lt;/STRONG&gt; but capturing groups is what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone here have a solution or tip?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Patrik&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 05:00:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201247#M59504</guid>
      <dc:creator>epacke</dc:creator>
      <dc:date>2018-02-20T05:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe a command and using match regular expressions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201489#M59554</link>
      <description>&lt;P&gt;Looks like you were already pretty close, you needed to escape the pipe. This seems to work for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;show system state | match debug.[glp]\|monitor.detail.enable&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More broadly, you could probably use although it gets a bit unwieldy after enough entries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;show system state | match debug.g\|debug.l\|debug.p\|monitor.detail.e&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 00:15:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201489#M59554</guid>
      <dc:creator>gwesson</dc:creator>
      <dc:date>2018-02-21T00:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe a command and using match regular expressions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201499#M59555</link>
      <description>&lt;P&gt;Thank you so much Greg.&lt;/P&gt;&lt;P&gt;They really need to improve their documentation in this part. And I need to improve my brain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can't believe I did not try that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Patrik&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 01:05:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201499#M59555</guid>
      <dc:creator>epacke</dc:creator>
      <dc:date>2018-02-21T01:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe a command and using match regular expressions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201510#M59557</link>
      <description>&lt;P&gt;Thanks Greg! Huge help for us.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 03:25:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/201510#M59557</guid>
      <dc:creator>bspilde</dc:creator>
      <dc:date>2018-02-21T03:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe a command and using match regular expressions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/999449#M122635</link>
      <description>&lt;P&gt;This is great, backwards, but great (one should escape control characters if they want to include them in the match, not the other way 'round). Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 15:31:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pipe-a-command-and-using-match-regular-expressions/m-p/999449#M122635</guid>
      <dc:creator>H.Tendrup</dc:creator>
      <dc:date>2024-12-24T15:31:34Z</dc:date>
    </item>
  </channel>
</rss>

