findRe now returns empty string instead of None

This commit is contained in:
Rolux 2008-05-07 13:27:42 +02:00
parent f4bb9d7fff
commit ee5afb5233

View file

@ -8,10 +8,9 @@ def findRe(string, regexp):
result = re.compile(regexp, re.DOTALL).findall(string)
if result:
return result[0].strip()
return None
return ''
def findRegexp(string, regexp):
return findRe(string, regexp)
findRegexp = findRe
def findString(string, string0='', string1 = ''):
"""Return the string between string0 and string1.