fixing findString()

This commit is contained in:
Rolux 2008-04-29 13:44:43 +02:00
parent a27d08f036
commit cce4cbc1e1

View file

@ -12,7 +12,7 @@ def findRegexp(string, regexp):
result = match.group(1)
return result
def findString(string, string0, string1):
def findString(string, string0, string1 = ''):
return findRegexp(string, re.escape(string0) + '(.*?)' + re.escape(string1))
# Capitalizes the first letter of a string.