Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove

>>> s="abc 
 	 		 	 
efg"
>>> ''.join(s.split())
'abcefg'
>>> ''.join(c for c in s if not c.isspace())
'abcefg'

import re

s = 'abc 
 	 		 	 
efg'
re.sub(r's', '', s)
=> 'abcefg'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove
ADD COMMENT
Topic
Name
2+5 =