<?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: character classes in regular expressions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832457#M938404</link>
    <description>Thanx a lot everyone.&lt;BR /&gt;&lt;BR /&gt;I read man pages but these tricks cannot be found.</description>
    <pubDate>Thu, 24 Oct 2002 14:22:56 GMT</pubDate>
    <dc:creator>Jdamian</dc:creator>
    <dc:date>2002-10-24T14:22:56Z</dc:date>
    <item>
      <title>character classes in regular expressions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832454#M938401</link>
      <description>Character classes aren't recognized by grep(1) and awk(1). For instance, the following command line displays nothing:&lt;BR /&gt;&lt;BR /&gt;echo "eeee" | grep -E '[:alpha:]'&lt;BR /&gt;Is there any mistake in it ?</description>
      <pubDate>Thu, 24 Oct 2002 09:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832454#M938401</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2002-10-24T09:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: character classes in regular expressions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832455#M938402</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It works this way with tr. But I think that with grep you should use :&lt;BR /&gt;&lt;BR /&gt;echo "eeee" | grep -E '[[:alpha:]]'&lt;BR /&gt;&lt;BR /&gt;to specify a class.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jean-Louis.</description>
      <pubDate>Thu, 24 Oct 2002 09:43:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832455#M938402</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-10-24T09:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: character classes in regular expressions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832456#M938403</link>
      <description>Jean-Louis is right.&lt;BR /&gt;&lt;BR /&gt;grep -E is shorter available as egrep&lt;BR /&gt;&lt;BR /&gt;Jeffrey Friedl has an extensive comparison available in Chapter 6 of his book "Mastering Regular Expressions" 1st ed. The second edition I do not have here at work right now, so I cannot check which chapter it in.&lt;BR /&gt;&lt;BR /&gt;It compares regular expression usage for traditional grep, vi, modern grep, modern sed, egrep, lex, trditional awk, GNU emacs, perl, tcl, default python, and expect&lt;BR /&gt;&lt;BR /&gt;For grep and awk it has two seperate tables to just show the differences between the different versions of grep and awk.&lt;BR /&gt;&lt;BR /&gt;FWIW {:...:] are POSIX character classes. Perl-5.8.0 uses \w for words [A-Za-z0-9_], which automagically includes the `letters' from the current locale</description>
      <pubDate>Thu, 24 Oct 2002 10:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832456#M938403</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-10-24T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: character classes in regular expressions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832457#M938404</link>
      <description>Thanx a lot everyone.&lt;BR /&gt;&lt;BR /&gt;I read man pages but these tricks cannot be found.</description>
      <pubDate>Thu, 24 Oct 2002 14:22:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-classes-in-regular-expressions/m-p/2832457#M938404</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2002-10-24T14:22:56Z</dc:date>
    </item>
  </channel>
</rss>

