I would like to parse the HD price from the following snipper of HTML. I am only have fragments of the html code, so I cannot use an HTML parser for this.
<div id="left-stack">
<span>View In iTunes</span></a>
<span class="price">£19.99</span>
<ul class="list">
<li>HD Version</li>
Basically, the format would be to "Find the price before the word "HD Version" (case insensitive). Here is what I have so far:
re.match(r'^(\d|.){1,6}...HD\sVersion', string)
How would I extract the value "19.99" from the above string?