re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

Devin Jeanpierre jeanpierreda at gmail.com
Tue Feb 14 14:33:12 CET 2012


On Tue, Feb 14, 2012 at 8:20 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:
> $ is a meta character for regular expressions. Use '\$*', which does
> compile.

I mean for it to be a meta-character.

I'm wondering why it's OK for to repeat a zero-width match if it is a
zero-width assertion.

-- Devin



More information about the Python-list mailing list