<?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: Perl Regular Expressions in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022269#M48068</link>
    <description>Look at the ^ and $ anchor's.</description>
    <pubDate>Wed, 10 Jan 2007 14:55:39 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2007-01-10T14:55:39Z</dc:date>
    <item>
      <title>Perl Regular Expressions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022268#M48067</link>
      <description>Following is snippet of my script.&lt;BR /&gt;&lt;BR /&gt;my @SalesDst = ('www1001',&lt;BR /&gt;                'qqq001',&lt;BR /&gt;               );&lt;BR /&gt;&lt;BR /&gt;foreach my $dst (@SalesDst)&lt;BR /&gt;{&lt;BR /&gt;  open(IN, $DST_File) or die "Could not open $DST_File: $!\n";&lt;BR /&gt;  my @logarray=&lt;IN&gt;;&lt;BR /&gt;  my $lookfor=("$dst");&lt;BR /&gt;  my @match=grep{/$lookfor/}@logarray;&lt;BR /&gt;&lt;BR /&gt;   if (@match)&lt;BR /&gt;    {  &lt;BR /&gt;     print @match;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;OUTPUT:&lt;BR /&gt;21744329 Jan 10  0:16 www1001&lt;BR /&gt;2379202 Jan  9 22:50 qqq001&lt;BR /&gt;&lt;BR /&gt;5810 Feb 17  2006 xyqqq001&lt;BR /&gt;I wan't exclude &lt;BR /&gt;    5810 Feb 17  2006 xyqqq001&lt;BR /&gt;from out put.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate all help.&lt;BR /&gt;&lt;BR /&gt;JC.&lt;/IN&gt;</description>
      <pubDate>Wed, 10 Jan 2007 14:44:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022268#M48067</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2007-01-10T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Regular Expressions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022269#M48068</link>
      <description>Look at the ^ and $ anchor's.</description>
      <pubDate>Wed, 10 Jan 2007 14:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022269#M48068</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-01-10T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Regular Expressions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022270#M48069</link>
      <description>There are also word anchors in perl. To make it work \bstring\b&lt;BR /&gt;Basically it will include only the string 'string'.</description>
      <pubDate>Wed, 10 Jan 2007 15:53:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022270#M48069</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-01-10T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Regular Expressions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022271#M48070</link>
      <description>In particular the line:&lt;BR /&gt;my @match=grep{/$lookfor/}@logarray;&lt;BR /&gt;should look like this:&lt;BR /&gt;my @match=grep{/\b$lookfor\b/}@logarray;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And also please assign points...</description>
      <pubDate>Wed, 10 Jan 2007 16:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022271#M48070</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-01-10T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Regular Expressions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022272#M48071</link>
      <description>Thread Close.&lt;BR /&gt;&lt;BR /&gt;Stuart / Alexander,&lt;BR /&gt;&lt;BR /&gt;I appreciate your reply.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Alexander, your following reply work.&lt;BR /&gt;&lt;BR /&gt;my @match=grep{/\b$lookfor\b/}@logarray;&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;JC.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jan 2007 16:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-regular-expressions/m-p/5022272#M48071</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2007-01-10T16:36:05Z</dc:date>
    </item>
  </channel>
</rss>

