Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string ignore characters

text = ['!kick', '/ban', '!k!ck']
for s in text:
    print s[0].translate(None, '!/') + s[1:]

output:
kick
ban
k!ck
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string #ignore #characters
ADD COMMENT
Topic
Name
8+4 =