<?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: Reg Exp. Problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319017#M876880</link>
    <description>For egrep:&lt;BR /&gt;egrep 'N+$|T+$'</description>
    <pubDate>Wed, 30 Jun 2004 07:11:52 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2004-06-30T07:11:52Z</dc:date>
    <item>
      <title>Reg Exp. Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319015#M876878</link>
      <description>I need to write a regular expression which will match a string value for N's and T's but not a combination like NTNTNTN&lt;BR /&gt;&lt;BR /&gt;This expression is what i wrote&lt;BR /&gt;&lt;BR /&gt;[N*T*]$&lt;BR /&gt;&lt;BR /&gt;Acceptable values of string &lt;BR /&gt;N&lt;BR /&gt;NNNNN.... any number of N's&lt;BR /&gt;T&lt;BR /&gt;TTTTTT  ... any number of T's&lt;BR /&gt;N N N N  there can be spaces inbetween&lt;BR /&gt;T T T T ... &lt;BR /&gt;but NOT something NTNTNTN or TNTNTNT&lt;BR /&gt;but the expression above is matching this combination tooo ... &lt;BR /&gt;&lt;BR /&gt;Can anyone help me solve this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2004 06:56:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319015#M876878</guid>
      <dc:creator>Joshila</dc:creator>
      <dc:date>2004-06-30T06:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Exp. Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319016#M876879</link>
      <description>Solution I would use: {N+|T+}$&lt;BR /&gt;It depends on the program you use if this is a supported regex. And use + instead of *, because you don't want to match empty patterns.</description>
      <pubDate>Wed, 30 Jun 2004 07:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319016#M876879</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-30T07:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Exp. Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319017#M876880</link>
      <description>For egrep:&lt;BR /&gt;egrep 'N+$|T+$'</description>
      <pubDate>Wed, 30 Jun 2004 07:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319017#M876880</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-30T07:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Exp. Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319018#M876881</link>
      <description>Sorry, missed one thing...&lt;BR /&gt;Should be:&lt;BR /&gt;egrep '^N+$|^T+$'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2004 07:15:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reg-exp-problem/m-p/3319018#M876881</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-30T07:15:19Z</dc:date>
    </item>
  </channel>
</rss>

