fixing findString()
This commit is contained in:
parent
8582e1b064
commit
a27d08f036
1 changed files with 4 additions and 5 deletions
|
@ -6,11 +6,10 @@ import re
|
||||||
|
|
||||||
def findRegexp(string, regexp):
|
def findRegexp(string, regexp):
|
||||||
result = None
|
result = None
|
||||||
try:
|
regexp = re.compile(regexp)
|
||||||
regexp = re.compile(regexp)
|
match = regexp.search(string)
|
||||||
match = regexp.search(string)
|
if match:
|
||||||
if match:
|
result = match.group(1)
|
||||||
result = match.group(1)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def findString(string, string0, string1):
|
def findString(string, string0, string1):
|
||||||
|
|
Loading…
Reference in a new issue