update of dynamicity engine

This commit is contained in:
Miroslav Stampar
2010-11-29 15:14:49 +00:00
parent ee4e04ebca
commit 70e87d959e
2 changed files with 15 additions and 5 deletions

View File

@@ -1627,3 +1627,15 @@ def extractRegexResult(regex, content, flags=0):
retVal = match.group("result")
return retVal
def trimAlphaNum(value):
"""
Trims alpha numeric characters from start and ending of a given value
"""
while value and value[-1].isalnum():
value = value[:-1]
while value and value[0].isalnum():
value = value[1:]
return value