From cce4cbc1e1df6044bfb2c9351f0f201b23ed59a6 Mon Sep 17 00:00:00 2001 From: Rolux Date: Tue, 29 Apr 2008 13:44:43 +0200 Subject: [PATCH] fixing findString() --- oxutils/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxutils/text.py b/oxutils/text.py index 62da56b..bd13192 100644 --- a/oxutils/text.py +++ b/oxutils/text.py @@ -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.