Re: [HACKERS] regular expressions from hell
От | Roland Roberts |
---|---|
Тема | Re: [HACKERS] regular expressions from hell |
Дата | |
Msg-id | x690nf44ah.fsf@ptolemy.rlent.pnet обсуждение исходный текст |
Ответ на | Re: [HACKERS] regular expressions from hell (ocie@paracel.com) |
Ответы |
Re: [HACKERS] regular expressions from hell
|
Список | 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 по дате отправления: