Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20388

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

From Devin Jeanpierre <jeanpierreda@gmail.com>
Date 2012-02-13 23:38 -0500
Subject re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?
Newsgroups comp.lang.python
Message-ID <mailman.5792.1329194327.27778.python-list@python.org> (permalink)

Show all headers | View raw


Hey Pythonistas,

Consider the regular expression "$*". Compilation fails with the
exception, "sre_constants.error: nothing to repeat".

Consider the regular expression "(?=$)*". As far as I know it is
equivalent. It does not fail to compile.

Why the inconsistency? What's going on here?

-- Devin

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-13 23:38 -0500
  Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2012-02-14 05:20 -0800
    Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-14 08:33 -0500

csiph-web