From f4bb9d7fff090367ed42ac7bd6589b3ec3483c3c Mon Sep 17 00:00:00 2001 From: Rolux Date: Wed, 7 May 2008 09:26:55 +0200 Subject: [PATCH] adding findRe, deprecating findRegexp --- oxutils/text.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oxutils/text.py b/oxutils/text.py index cc028be..c36ffa9 100644 --- a/oxutils/text.py +++ b/oxutils/text.py @@ -4,12 +4,15 @@ import re -def findRegexp(string, regexp): +def findRe(string, regexp): result = re.compile(regexp, re.DOTALL).findall(string) if result: return result[0].strip() return None +def findRegexp(string, regexp): + return findRe(string, regexp) + def findString(string, string0='', string1 = ''): """Return the string between string0 and string1.