I would like to extract a number from a large html file with python. My idea was to use regex like this:
import re
text = 'gfgfdAAA1234ZZZuijjk'
try:
found = re.search('AAA(.+?)ZZZ', text).group(1)
except AttributeError:
found = ''
found
But unfortunately i'm not used to regex and i fail to adapt this example to extract 0,54125 from:
(...)<div class="vk_ans vk_bk">0,54125 count id</div>(...)
Is there an other way to extract the number or could some one help me with the regex?