Possible Duplicate:
Preg_match_all <a href
How to parse and process HTML with PHP?
I have used curl to extract the source of a page and need to extract some values from the curl output.
Part of the output looks like this:
<div class="detailInfo">
<label>Manufacturer code/Gas council no:
</label>BKSWX5506</div>
<div class="detailInfo"></div>
<div class="detailInfo">
<div>
<label>Retail price:</label><span>£12.30</span>
</div>
<div>
<label>Net buying price:</label><span>£7.47</span>
</div>
</div>
From that output I need to get the code after "Manufacturer code/Gas council no:" and both of the prices all in separate strings.
Can anyone help me with this?
Thanks :)