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

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -