Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove duplicate space in string in pytoon

>>> import re
>>> re.sub(' +', ' ', 'The     quick brown    fox')
'The quick brown fox'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #space #string #pytoon
ADD COMMENT
Topic
Name
7+8 =