Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?<!\d)[.,;:?!-](?!\d)
"
g

Description

this tool will delete all the punctuation from a text but it will not delete punctuation from numbers.

Submitted by anonymous - 5 years ago