re.findall(\"(100|[0-9][0-9]|[0-9])%\", \"89%\")
This returns only result [89] and I need to return the whole 89%. Any ideas how to do
[89]
Use an outer group, with the inner group a non-capturing group:
>>> re.findall("((?:100|[0-9][0-9]|[0-9])%)","89%") ['89%']