[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
- Re: Help with Emacs Regex, Barry Margolin, 2003/07/16
- Re: Help with Emacs Regex, Kai Großjohann, 2003/07/18
- FW: Help with Emacs Regex, Hortman, Mark, 2003/07/18
- Re: FW: Help with Emacs Regex, Kai Großjohann, 2003/07/18
- Re: FW: Help with Emacs Regex,
Stefan Monnier <=