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 06:16:26 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

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

On Tue, Dec 01, 2009 at 10:07:46PM +0100, Pascal J. Bourguignon wrote:
> Xavier Maillard <address@hidden> writes:
> 
> > Hi,
> >
> > I am trying to find the regexp that could match on these:
> >
> > "=>foo"

[...]

> "=>\\([^:]*\\(\\|:[^:]*\\(\\|:[^:]*\\)\\)\\)"

Wow, Pascal. You have taught this old dog a new trick. Up to now, I
hadn't thought of putting an alternative (i.e. "|") at the start of a
parenthesized sub-expression. Thanks :-)

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

iD8DBQFLFfgqBcgs9XrR2kYRArCSAJsF/cNzBW4JxbFhy9RVXchyu0wIdwCfVN48
tHvpGkOyBF8b1HjeOvTXM2Q=
=RIly
-----END PGP SIGNATURE-----




reply via email to

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