DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+4 =
Submit