u"""
        Returns a Python regular expression allowing to match
        :return:

def translate(self, closed_regex=True):
        u"""
        Returns a Python regular expression allowing to match
        :return:
        """
        if closed_regex:
            return self.regex
        else:
            return translate(self.pattern, closed_regex=False, **self.flags)