[Python-Dev] one last SRE headache (original) (raw)

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Fri, 1 Sep 2000 00:30:23 +0200


tim:

[/F] > I had to add one rule: > > If it starts with a zero, it's always an octal number. > Up to two more octal digits are accepted after the > leading zero. > > but this still fails on this pattern: > > r'(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\119' > > where the last part is supposed to be a reference to > group 11, followed by a literal '9'.

But 9 isn't an octal digit, so it fits w/ your new rule just fine.

last time I checked, "1" wasn't a valid zero.

but nevermind; I think I've figured it out (see other mail)