<gh_stars>1-10
import regex

punctuationRE = regex.compile(r'\p{punct}+')

hyphenRE = regex.compile(r'(?:\{Pd}|[\xad\-])+$')

letterRE = regex.compile(r'\p{L}')

import regex

punctuationRE = regex.compile(r'\p{punct}+')

hyphenRE = regex.compile(r'(?:\{Pd}|[\xad\-])+$')

letterRE = regex.compile(r'\p{L}')