Posted on 21st July 2024|17 views
How to remove punctuation marks from a string in Python 3.x?
Posted on 21st July 2024| views
You can simply remove all the punctuation by using this
import re, string
eclean_string = re.sub(rf"[{string.punctuation}]", "", dirty_string)