Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove extra spaces python

>>> import re
>>> re.sub(' +', ' ', 'The     quick brown    fox')
'The quick brown fox'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #extra #spaces #python
ADD COMMENT
Topic
Name
7+3 =