Files
RustPython/Lib/re.py
2018-07-18 10:22:00 +02:00

12 lines
207 B
Python

""" Regular expressions """
def match(pattern, string, flags=0):
return _compile(pattern, flags).match(string)
def _compile(pattern, flags):
p = sre_compile.compile(pattern, flags)
return p