Skip to content

Not sure if this regex does what you want #13

@LouisMichael

Description

@LouisMichael

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 '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions