habe ein kleines Problem mit RegEx.
Code: Alles auswählen
# regextest.py
# testen von Regular Expressions
from re import *
teststring = 'fs ss'
re.sub(' ','',teststring)
print 'teststring: ',teststring
#ausgabe
#teststring: fs ss
Code: Alles auswählen
#in der konsole:
>>> import re
>>> s = 'fs ss'
>>> re.sub(' ','',s)
'fsss'