Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

can you edit string.punctuation

>>> name = '	est-1.'
>>> valid_characters = 'abcdefghijklmnopqrstuvwxyz1234567890- '
>>> filtered_name = ''.join([ x for x in name if x.lower() in valid_characters ])
>>> print(filtered_name)
test-1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #edit
ADD COMMENT
Topic
Name
8+6 =