In message <e9213fb3- c77d-4a47-8cb4-7dd916d69a61 at s1g2000prd.googlegroups.com>, 1x7y2z9 wrote: > Not sure if this is defined in a later version, but it would be nice > to define re.NONE = 0 in the re module. Do so: re.NONE = 0 Problem solved.