<?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: Regexp range in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448015#M852121</link>
    <description>Thank you all for your replies. The case is solved.&lt;BR /&gt;&lt;BR /&gt;Regards Petra</description>
    <pubDate>Tue, 21 Dec 2004 08:21:28 GMT</pubDate>
    <dc:creator>Petra Sandberg</dc:creator>
    <dc:date>2004-12-21T08:21:28Z</dc:date>
    <item>
      <title>Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448008#M852114</link>
      <description>Hi, does anyone have a suggestion on how to match a number serie ranging from for exampel 17585 to 17643 in a regexp.&lt;BR /&gt;&lt;BR /&gt;Regards Petra</description>
      <pubDate>Tue, 21 Dec 2004 07:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448008#M852114</guid>
      <dc:creator>Petra Sandberg</dc:creator>
      <dc:date>2004-12-21T07:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448009#M852115</link>
      <description>Hi Petra,&lt;BR /&gt;&lt;BR /&gt;try something like this.&lt;BR /&gt;&lt;BR /&gt;# grep "17[5-6][0-9][0-9]" file&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 21 Dec 2004 07:33:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448009#M852115</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-12-21T07:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448010#M852116</link>
      <description>&lt;BR /&gt;Robert-Jan,&lt;BR /&gt;&lt;BR /&gt;The statement&lt;BR /&gt;&lt;BR /&gt;grep "17[5-6][0-9][0-9]" file&lt;BR /&gt;&lt;BR /&gt;will also include the numbers 17500-17584 and 17644-17699&lt;BR /&gt;&lt;BR /&gt;thus they need to include grep -v 's&lt;BR /&gt;&lt;BR /&gt;# grep "17[5-6][0-9][0-9]" file | grep -v -e "175[0-7][0-9]" -e "1758[0-4]" -e "1764[4-9]" -e "176[5-9][0-9]"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 21 Dec 2004 07:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448010#M852116</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-12-21T07:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448011#M852117</link>
      <description>No gerexpr, but:&lt;BR /&gt;&lt;BR /&gt;for i in `cat file`&lt;BR /&gt;do&lt;BR /&gt;if [ "$i" -gt 17584 ]&lt;BR /&gt;then&lt;BR /&gt;        if [ "$i" -lt 17644 ]&lt;BR /&gt;        then&lt;BR /&gt;        echo $i&lt;BR /&gt;        fi&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Dec 2004 07:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448011#M852117</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-12-21T07:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448012#M852118</link>
      <description>Thanks for the reply, but it's not exactly what I want. The problem is this I want to match just between 17585 to 17643 this gives a match on 17644 to 17699 as well.&lt;BR /&gt;&lt;BR /&gt;Petra</description>
      <pubDate>Tue, 21 Dec 2004 07:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448012#M852118</guid>
      <dc:creator>Petra Sandberg</dc:creator>
      <dc:date>2004-12-21T07:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448013#M852119</link>
      <description>Petra:&lt;BR /&gt;&lt;BR /&gt;[root@vpart1 /tmp]# cat xyz                                                                                                     &lt;BR /&gt;17499&lt;BR /&gt;17500&lt;BR /&gt;17540&lt;BR /&gt;17580&lt;BR /&gt;17584&lt;BR /&gt;17585&lt;BR /&gt;17586&lt;BR /&gt;17600&lt;BR /&gt;17640&lt;BR /&gt;17642&lt;BR /&gt;17643&lt;BR /&gt;17644&lt;BR /&gt;17650&lt;BR /&gt;17800&lt;BR /&gt;[root@vpart1 /tmp]# grep "17[5-6][0-9][0-9]" xyz | grep -v -e "175[0-7][0-9]" -e "1758[0-4]" -e "1764[4-9]" -e "176[5-9][0-9]"  &lt;BR /&gt;17585&lt;BR /&gt;17586&lt;BR /&gt;17600&lt;BR /&gt;17640&lt;BR /&gt;17642&lt;BR /&gt;17643&lt;BR /&gt;[root@vpart1 /tmp]# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 21 Dec 2004 08:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448013#M852119</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-12-21T08:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448014#M852120</link>
      <description>Hi Petra,&lt;BR /&gt;&lt;BR /&gt;Check Harry's second option, he allready added the grep -v options to remove the ranges.&lt;BR /&gt;&lt;BR /&gt;Robert-Jan&lt;BR /&gt;&lt;BR /&gt;Ps &lt;BR /&gt;Thanks Harry for the correction.</description>
      <pubDate>Tue, 21 Dec 2004 08:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448014#M852120</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-12-21T08:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448015#M852121</link>
      <description>Thank you all for your replies. The case is solved.&lt;BR /&gt;&lt;BR /&gt;Regards Petra</description>
      <pubDate>Tue, 21 Dec 2004 08:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448015#M852121</guid>
      <dc:creator>Petra Sandberg</dc:creator>
      <dc:date>2004-12-21T08:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp range</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448016#M852122</link>
      <description>She asked "IN" a regex :)&lt;BR /&gt;&lt;BR /&gt;# echo "17485" | perl -nle'/\b(17\d\d\d)\b(??{$x=$^N&amp;gt;=17585&amp;amp;&amp;amp;$^N&amp;lt;=17643?"":"(?&amp;lt;=X)"})\b/ and print "IN"'&lt;BR /&gt;&lt;BR /&gt;# echo "17585" | perl -nle'/\b(17\d\d\d)\b(??{$x=$^N&amp;gt;=17585&amp;amp;&amp;amp;$^N&amp;lt;=17643?"":"(?&amp;lt;=X)"})\b/ and print "IN"'&lt;BR /&gt;IN&lt;BR /&gt;&lt;BR /&gt;OK, that's dirty!&lt;BR /&gt;&lt;BR /&gt;# echo "17585" | perl -nle'/\b17(5(8[5-9]|[6-9]\d)|6([0-3]\d|4[0-3]))\b/ and print "Match!"&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Dec 2004 08:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regexp-range/m-p/3448016#M852122</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-12-21T08:45:45Z</dc:date>
    </item>
  </channel>
</rss>

