Regular Expressions 101

Community Patterns

punctuations cleaner

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 - 4 years ago