cpython/Lib/re.py
Guido van Rossum 2850d18615 Switch to sre for regular expression matching (the new mini-re module
is actually by Fredrik Lundh).  This will break the re tests --
Fredrik will fix this before the final release.
2000-06-30 16:25:20 +00:00

12 lines
283 B
Python

# change this to "pre" if your regexps stopped working. don't
# forget to send a bug report to <some suitable address>
engine = "sre"
if engine == "sre":
# new 2.0 engine
from sre import *
else:
# old 1.5.2 engine. will be removed in 2.0 final.
from pre import *