<?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: Help with perl regex in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974959#M102151</link>
    <description>Perfect. Thank you merijn</description>
    <pubDate>Fri, 21 Apr 2006 14:31:46 GMT</pubDate>
    <dc:creator>Mike_Ca Li</dc:creator>
    <dc:date>2006-04-21T14:31:46Z</dc:date>
    <item>
      <title>Help with perl regex</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974957#M102149</link>
      <description>@output is &lt;BR /&gt;   QUEUE(QUEUE.01)                           CURDEPTH(0)&lt;BR /&gt;   QUEUE(QUEUE.02)                           CURDEPTH(0)&lt;BR /&gt;   QUEUE(QUEUE.03)                           CURDEPTH(0)&lt;BR /&gt;&lt;BR /&gt;I have this code:&lt;BR /&gt;                foreach (@output) {&lt;BR /&gt;                        # Just read the values in parentheses into a list&lt;BR /&gt;                        @queues = (@queues, m/(\w+.\d{2})/, m/(\d+)/);&lt;BR /&gt;                }&lt;BR /&gt;&lt;BR /&gt;@queues is showing:&lt;BR /&gt;QUEUE.01 01 QUEUE.02 02 QUEUE.03 03&lt;BR /&gt;&lt;BR /&gt;How to get &lt;BR /&gt;QUEUE.01 0 QUEUE.02 0 QUEUE.03 0 ? Thanks</description>
      <pubDate>Fri, 21 Apr 2006 13:37:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974957#M102149</guid>
      <dc:creator>Mike_Ca Li</dc:creator>
      <dc:date>2006-04-21T13:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with perl regex</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974958#M102150</link>
      <description>&lt;BR /&gt;for (@output) {&lt;BR /&gt;push @queues, m/\((.*?)\)/g;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Demo:&lt;BR /&gt;&lt;BR /&gt;lt09:/home/merijn 103 &amp;gt; cat xx.txt&lt;BR /&gt;QUEUE(QUEUE.01) CURDEPTH(0)&lt;BR /&gt;QUEUE(QUEUE.02) CURDEPTH(0)&lt;BR /&gt;QUEUE(QUEUE.03) CURDEPTH(0)&lt;BR /&gt;lt09:/home/merijn 104 &amp;gt; perl -wle'my@output=&amp;lt;&amp;gt;;for(@output){push@queues,m/\((.*?)\)/g}print for@queues' xx.txt&lt;BR /&gt;QUEUE.01&lt;BR /&gt;0&lt;BR /&gt;QUEUE.02&lt;BR /&gt;0&lt;BR /&gt;QUEUE.03&lt;BR /&gt;0&lt;BR /&gt;lt09:/home/merijn 105 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 21 Apr 2006 14:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974958#M102150</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-04-21T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with perl regex</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974959#M102151</link>
      <description>Perfect. Thank you merijn</description>
      <pubDate>Fri, 21 Apr 2006 14:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-perl-regex/m-p/4974959#M102151</guid>
      <dc:creator>Mike_Ca Li</dc:creator>
      <dc:date>2006-04-21T14:31:46Z</dc:date>
    </item>
  </channel>
</rss>

