Regular Expressions 101

Regular expression to remove all puncutation

Open Workspace
  • Python
  • Match
1

Regular Expression

r"
(\\n)|(\\r)|(\\t)|(\u00A9)|([!"#$%&()*+,-./:;<=>?@\[\\\]^_`{|}~])
"
gi

Description

Removes all of the puncutation present inlcuding \n,\t,\r

Submitted by Abhinav Gupta