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

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

Re: FW: Help with Emacs Regex


From: Stefan Monnier
Subject: Re: FW: Help with Emacs Regex
Date: 18 Jul 2003 16:22:37 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I was previously given a barf bag and the regex of
> ^\([^"]\|.[^0-9]\|..[^0-9]\|...[^0-9]\)
> and that seems to pass all of my tests so far.  

You're lucky.  I think the barf bag needs to be replaced with
a bigger one and the regexp should be tweaked to:

   ^\(\([^"]|$\)\|.\([^0-9]\|$\)\|..\([^0-9]\|$\)\|...\([^0-9]\|$\)\)

Aahhh.... the wonders of negating regexps.


        Stefan


reply via email to

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