Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def nondigit_punct_re():
return re.compile(r'([^\d])([' + UnicodeRegex.punctuation() + r'])')
def punctuation():
return UnicodeRegex._property_chars('P')