A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/009054.html below:

[Python-Dev] one last SRE headache

[Python-Dev] one last SRE headache [Python-Dev] one last SRE headacheTim Peters tim_one@email.msn.com
Thu, 31 Aug 2000 17:07:37 -0400
[/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.  \117
here instead would be an octal escape.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4