quantulum
quantulum copied to clipboard
Not sure if this regex does what you want
Here it seems to be trying to strip out unicode punctuation but \p{} is not a supported python regex feature, it just matches literal p Example case:
re.sub(ur'\p{P}+', ' ', "apc , f") 'apc , f' re.sub(ur'\p{P}+', ' ', "apc , f p{P}") 'apc , f '