Skip to navigation
Replace all non-alphanumeric characters in a string in python
07.12.13
import re re.sub('[^0-9a-zA-Z_-]+', '', "hel\lo")
Reply
Anonymous
Information Epoch 1772855031
Clarity is better than cleverness.
Home
Notebook
Contact us