From a27d08f036597b1c377752e1b3f05451c5860a77 Mon Sep 17 00:00:00 2001 From: Rolux Date: Tue, 29 Apr 2008 13:34:25 +0200 Subject: [PATCH] fixing findString() --- oxutils/text.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/oxutils/text.py b/oxutils/text.py index 90b0b1d..62da56b 100644 --- a/oxutils/text.py +++ b/oxutils/text.py @@ -6,11 +6,10 @@ import re def findRegexp(string, regexp): result = None - try: - regexp = re.compile(regexp) - match = regexp.search(string) - if match: - result = match.group(1) + regexp = re.compile(regexp) + match = regexp.search(string) + if match: + result = match.group(1) return result def findString(string, string0, string1):