<?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: Regular Expression Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801432#M720683</link>
    <description>How is white space being a problem?&lt;BR /&gt;&lt;BR /&gt;grep "From " file&lt;BR /&gt;&lt;BR /&gt;doesn't work?&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
    <pubDate>Fri, 06 Sep 2002 14:52:23 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2002-09-06T14:52:23Z</dc:date>
    <item>
      <title>Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801429#M720680</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please help me in composing very simple regular expression.&lt;BR /&gt;&lt;BR /&gt;I'm parsing e-mail box and there is a need to distinguish two "From" lines&lt;BR /&gt;&lt;BR /&gt;From root@host.com  Fri Sep  6 18:32:25 2002&lt;BR /&gt;and&lt;BR /&gt;From: root@host.com&lt;BR /&gt;&lt;BR /&gt;Both lines are retrieved by expression /From/&lt;BR /&gt;I'd like to get line with word 'From'  followed by white space. The white space is my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks and points in advance!&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Mihails&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 14:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801429#M720680</guid>
      <dc:creator>Mihails Nikitins</dc:creator>
      <dc:date>2002-09-06T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801430#M720681</link>
      <description>Unde perl you would use-&lt;BR /&gt;&lt;BR /&gt;/^From:?\s*(.*)/&lt;BR /&gt;&lt;BR /&gt;Then $1 would contain text&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 06 Sep 2002 14:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801430#M720681</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-09-06T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801431#M720682</link>
      <description>cat mail.box | grep "From "&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;Cat mail.box | grep From | grep -v "From:"&lt;BR /&gt;&lt;BR /&gt;I think this is what you wanted?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;c</description>
      <pubDate>Fri, 06 Sep 2002 14:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801431#M720682</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2002-09-06T14:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801432#M720683</link>
      <description>How is white space being a problem?&lt;BR /&gt;&lt;BR /&gt;grep "From " file&lt;BR /&gt;&lt;BR /&gt;doesn't work?&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 06 Sep 2002 14:52:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801432#M720683</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-09-06T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801433#M720684</link>
      <description>I used grep relatively easily&lt;BR /&gt;&lt;BR /&gt;grep &lt;YOURFILE&gt; "From\ "&lt;BR /&gt;will get the word "From" followed by a whitespace.  &lt;BR /&gt;grep "From:" will grabe other&lt;BR /&gt;if the whitespace is a tab, then &lt;BR /&gt;grep "From\   "&lt;BR /&gt;where the whitespace above is a tab.&lt;BR /&gt;&lt;BR /&gt;This should not require really a regular expression to get, but the same principles exist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Shannon&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/YOURFILE&gt;</description>
      <pubDate>Fri, 06 Sep 2002 14:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801433#M720684</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-09-06T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801434#M720685</link>
      <description>Mihails,&lt;BR /&gt;&lt;BR /&gt;Try /From /  (there is a space right behind From.)&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Fri, 06 Sep 2002 14:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801434#M720685</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-09-06T14:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801435#M720686</link>
      <description>/^From[^:]/&lt;BR /&gt;&lt;BR /&gt;in most applications (awk, sed, perl&lt;BR /&gt;&lt;BR /&gt;Charles, please unlearn 'cat':&lt;BR /&gt;&lt;BR /&gt;grep /regex/ &lt;FILE&gt;&lt;/FILE&gt;&lt;BR /&gt;is both faster and more efficient than&lt;BR /&gt;&lt;BR /&gt;cat file | grep /regex/&lt;BR /&gt;&lt;BR /&gt;and as a bonus you'll hit maxproc less often :)</description>
      <pubDate>Fri, 06 Sep 2002 14:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801435#M720686</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-09-06T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801436#M720687</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;awk '/From[ ]/ {print}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 06 Sep 2002 14:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801436#M720687</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-06T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801437#M720688</link>
      <description>Try:&lt;BR /&gt;/From[&lt;SPACE&gt;|&lt;TAB&gt;]/&lt;BR /&gt;&lt;BR /&gt;Where &lt;SPACE&gt; is a single space character and &lt;TAB&gt; a single tab.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/TAB&gt;&lt;/SPACE&gt;&lt;/TAB&gt;&lt;/SPACE&gt;</description>
      <pubDate>Fri, 06 Sep 2002 15:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801437#M720688</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-09-06T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801438#M720689</link>
      <description>Another one is:&lt;BR /&gt;&lt;BR /&gt;/From[:space:]/&lt;BR /&gt;&lt;BR /&gt;See man 5 regexp&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 06 Sep 2002 15:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801438#M720689</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-09-06T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801439#M720690</link>
      <description>Thanks for your replies, I wanted nice regular expression with brackets, not grep. Even do not ask me why simplier solutions did not work. There was a mystic problem located between the seat and keyboard. :-)&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Mihails</description>
      <pubDate>Tue, 10 Sep 2002 10:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regular-expression-question/m-p/2801439#M720690</guid>
      <dc:creator>Mihails Nikitins</dc:creator>
      <dc:date>2002-09-10T10:03:25Z</dc:date>
    </item>
  </channel>
</rss>

