i want to extract a number from a html string (i usually do not know the number).
The crucial part looks like this:
in your view.py document you can try this:
import re my_string="TOTAL : 286" int(re.search(r'\d+', my_string).group())
286