quantulum icon indicating copy to clipboard operation
quantulum copied to clipboard

Not sure if this regex does what you want

Open LouisMichael opened this issue 6 years ago • 0 comments

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 '

LouisMichael avatar Feb 19 '19 03:02 LouisMichael