DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
remove all whitespace from string python
import re s = ' this is a string with a lot of whitespace ' s = re.sub('s+', '', s)
PREVIOUS
NEXT
Tagged:
#remove
#whitespace
#string
#python
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit