Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove special characters from list

import re
my_list= ["on@3", "two#", "thre%e"]
print [re.sub('[^a-zA-Z0-9]+', '', _) for _ in my_list]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #special #characters #list
ADD COMMENT
Topic
Name
7+7 =