<?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: Regex tips in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573282#M679179</link>
    <description>Thanks &lt;BR /&gt;&lt;BR /&gt;It's works (forget double bracket..) : &lt;BR /&gt;echo "bla:  567/1234" | sed -n -e "s_.*[[:space:]]\([0-9]*\)/\([0-9]*\).*_\1_p"</description>
    <pubDate>Thu, 28 Jan 2010 14:52:44 GMT</pubDate>
    <dc:creator>2xyo</dc:creator>
    <dc:date>2010-01-28T14:52:44Z</dc:date>
    <item>
      <title>Regex tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573280#M679177</link>
      <description>Dear,&lt;BR /&gt;&lt;BR /&gt;I have this regular expression wich works fine on linux with sed 4.1.5 :&lt;BR /&gt;&lt;BR /&gt;# echo "bla: 567/1234" | sed -n -e "s_.*\s\([0-9]*\)/\([0-9][0-9][0-9][0-9]\).*_\1_p"&lt;BR /&gt;567&lt;BR /&gt;&lt;BR /&gt;Now, i try this on HP-UX 11iv1 but it return nothing...&lt;BR /&gt;I also try with :&lt;BR /&gt;echo "bla: 567/1234" | sed -n -e "s_.*\[:space:]\([0-9]*\)/\([0-9][0-9][0-9][0-9]\).*_\1_p"&lt;BR /&gt;&lt;BR /&gt;i suspect \s doesn't work with this version of sed (sed --version doesn't works on HP..)&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciate</description>
      <pubDate>Thu, 28 Jan 2010 14:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573280#M679177</guid>
      <dc:creator>2xyo</dc:creator>
      <dc:date>2010-01-28T14:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regex tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573281#M679178</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, HP's 'sed' lacks the power of the GNU 'sed'.  Even things like '\s' for whitespace are missing.&lt;BR /&gt;&lt;BR /&gt;In lieu of using:&lt;BR /&gt;&lt;BR /&gt;\s*&lt;BR /&gt;&lt;BR /&gt;...you can use:&lt;BR /&gt;&lt;BR /&gt;[[:space:]]*&lt;BR /&gt;&lt;BR /&gt;Notice the double brackets where you only used single ones.&lt;BR /&gt;&lt;BR /&gt;Hence, this works on HP-UX:&lt;BR /&gt;&lt;BR /&gt;# echo "bla: 567/1234" | sed -n -e "s_.*[[:space:]]\([0-9]*\)/\([0-9][0-9][0-9][0-9]\).*_\1_p"&lt;BR /&gt;567&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jan 2010 14:37:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573281#M679178</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-01-28T14:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex tips</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573282#M679179</link>
      <description>Thanks &lt;BR /&gt;&lt;BR /&gt;It's works (forget double bracket..) : &lt;BR /&gt;echo "bla:  567/1234" | sed -n -e "s_.*[[:space:]]\([0-9]*\)/\([0-9]*\).*_\1_p"</description>
      <pubDate>Thu, 28 Jan 2010 14:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-tips/m-p/4573282#M679179</guid>
      <dc:creator>2xyo</dc:creator>
      <dc:date>2010-01-28T14:52:44Z</dc:date>
    </item>
  </channel>
</rss>

