help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with regexp


From: tomas
Subject: Re: Help with regexp
Date: Wed, 2 Dec 2009 08:11:39 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Dec 02, 2009 at 07:03:02AM +0100, Andreas Politz wrote:
> address@hidden writes:

[...]

> > Wow, Pascal. You have taught this old dog a new trick [...]

[...]

> Since this topic is more or less closed (modulo escaped delimiter), we
> could use it to discuss the question, why using non-trivial Emacs regexp
> makes one feel like Chomsky had just written his influential book on
> grammars.

;-)

> Things I (won't) miss most:
> 
> - extreme backslasheritis

Meaning: backslasheritis of the First Kind (aka |, (, ), {, } not having
special meaning) or backslasheritis of the Second Kind (aka having to
escape backslashes to get them into the string in the first place)?

Mind you, I don't like it either, but any idea I had kills some aspect
of Simplicity we all appreciate in Emacs :-(

> - no short aliases for important constructs :
>   digits,symbol-constituents,newline,space

Well, you always have those pesky [:stuff:] ones. They ain't so tidy,
but once you get used to them they are even more readable (and they
reduce the backslash density considerably).

> - no zero-width matches ; look(ahead|behind)

Hm. To be fair, there are some, among others \b, \B, \<, \> (and the
funky \=, which matches at point). Yor are looking for a general zero
width match?

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLFhMqBcgs9XrR2kYRAgZ/AJ4iNyq4OAinfojde4FZw1uFBzjNCgCeLw0j
MHOwWQ3FXHWgs5mSB6cNB3s=
=L2T1
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]