Re: [HACKERS] regular expressions from hell - Mailing list pgsql-hackers

From Roland Roberts
Subject Re: [HACKERS] regular expressions from hell
Date
Msg-id x690nf44ah.fsf@ptolemy.rlent.pnet
Whole thread Raw
In response to Re: [HACKERS] regular expressions from hell  (ocie@paracel.com)
Responses Re: [HACKERS] regular expressions from hell  (dg@illustra.com (David Gould))
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----

>>>>> "ocie" == ocie  <ocie@paracel.com> writes:

    ocie> I think most of this is due to different decisions on what
    ocie> needs to be escaped or not.  For instance, if memory serves,
    ocie> GNU grep treats parens as metacharacters, which must be
    ocie> escaped with a backslash to match parens, while in Emacs,
    ocie> parens match parens and must be escaped to get their
    ocie> meta-character meaning.  Things have gone too far to have
    ocie> one standard now I'm afraid.

Please try to remember that there are historical reasons for some of
this.  grep and egrep behave differently with respect to parentheses;
again, this is historical.

Personally, I like Perl regexps.  And there is a library for Tcl/Tk
(nre) that implements the same syntax for that language.  But I do
like Emacs' syntax tables and character classes.  I can live with
switching back and forth to some extent....

roland

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBNXSyLuoW38lmvDvNAQHatQQAsyp+akdXl0TiptXsSlrp7tM2/Jb/jLnW
SfpkYVkk53iER/JMYMU4trfQQssePkqGmaF8GMeU5i8eMW6Vi3Vus2pqovnLa1eV
w5rCgxKXqpZnIhGJZeHIYieMfWxfdmWOUjawrjKv85vBRdZDYdRkLBoAWvI4ZaJb
JxAEwqbZrQw=
=Zgvo
-----END PGP SIGNATURE-----
--
Roland B. Roberts, PhD                  Custom Software Solutions
roberts@panix.com                           101 West 15th St #4NN
                                               New York, NY 10011

pgsql-hackers by date:

Previous
From: Brett McCormick
Date:
Subject: dump/reload
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] dump/reload