MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / trimAlphaNum

Function trimAlphaNum

lib/core/common.py:3170–3184  ·  view source on GitHub ↗

Trims alpha numeric characters from start and ending of a given value >>> trimAlphaNum('AND 1>(2+3)-- foobar') ' 1>(2+3)-- '

(value)

Source from the content-addressed store, hash-verified

3168 return filterNone(_.group("result").strip() for _ in re.finditer(TEXT_TAG_REGEX, page))
3169
3170def trimAlphaNum(value):
3171 """
3172 Trims alpha numeric characters from start and ending of a given value
3173
3174 >>> trimAlphaNum('AND 1>(2+3)-- foobar')
3175 ' 1>(2+3)-- '
3176 """
3177
3178 while value and value[-1].isalnum():
3179 value = value[:-1]
3180
3181 while value and value[0].isalnum():
3182 value = value[1:]
3183
3184 return value
3185
3186def isNumPosStrValue(value):
3187 """

Callers 1

findDynamicContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…