def try_compile(self):
        return re.compile(self.pattern, self.flags)
Compile this :class:`Regex` as a Python regular expression.
dataset/ETHPy150Open mongodb/mongo-python-driver/bson/regex.py/Regex.try_compile