On Oct 13, 9:40 am, [EMAIL PROTECTED] wrote:
> I'm looking for a function which, given a regexp re and and a string
> str, returns whether re won't match any string starting with str. (so
> it would always return False if str is "" or if str itself matches re
> -- but that are only the easy cases)
At 2008-10-13T16:40:07Z, [EMAIL PROTECTED] writes:
def nomatch(value):
return not(value == '' or pattern.match(value))
--
Kirk Strauser
The Day Companies
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
I'm looking for a function which, given a regexp re and and a string
str, returns
whether re won't match any string starting with str. (so it would
always
return False if str is "" or if str itself matches re -- but that are
only the
easy cases).
I have the vague feeling that the inter