Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace two spaces with one

" ".join(filter(bool, mystring.split(" ")))
 
PREVIOUS NEXT
Tagged: #python #replace #spaces
ADD COMMENT
Topic
Name
5+3 =