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

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -