regex - How can I remove all special characters except dot (.) in python? -


how can remove special characters "!@#$%^&*()_+" , similar things in python except dot (.), alphanumeric , space in python?

you can use maketrans/translate translate each character don't want special character use replace replace character empty string.

the other way go though character character , concatenate each character on new string if desired character.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -