1>>> string = "Special $#! characters spaces 888323"
2>>> ''.join(e for e in string if e.isalnum())
3'Specialcharactersspaces888323'
1import re
2my_list= ["on@3", "two#", "thre%e"]
3print [re.sub('[^a-zA-Z0-9]+', '', _) for _ in my_list]
4
1alphanumeric = [character for character in a_string if character.isalnum()]