Python / Remove special character from string -
i'm writing server side in python.
i noticed client sent me 1 of parameter this:
"↵ tryit1.tar↵ " i want rid of spaces (and use replace command), want rid of special character: "↵".
how can rid of character (and other weird characters, not -,_,*,.) using python command?
a regex here:
re.sub('[^a-za-z0-9-_*.]', '', my_string)
Comments
Post a Comment