Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create valid filename from string

def cleanFilename(sourcestring,  removestring =" %:/,.[]<>*?"):
    #remove the undesireable characters
    return ''.join([c for c in sourcestring if c not in removestring])



################################################################
Source by www.programcreek.com #
 
PREVIOUS NEXT
Tagged: #python #create #valid #filename #string
ADD COMMENT
Topic
Name
3+8 =