update to findRe

This commit is contained in:
j 2008-07-02 16:58:28 +02:00
parent afb62ead64
commit f58b8ba747

View file

@ -33,7 +33,7 @@ def findString(string, string0='', string1 = ''):
string1 = re.escape(string1) string1 = re.escape(string1)
else: else:
string1 = '$' string1 = '$'
return findRegexp(string, string0 + '(.*?)' + string1) return findRe(string, string0 + '(.*?)' + string1)
# Capitalizes the first letter of a string. # Capitalizes the first letter of a string.
capfirst = lambda x: x and x[0].upper() + x[1:] capfirst = lambda x: x and x[0].upper() + x[1:]