i have lot much raw data in this html file,
i have stored this in string =$data
and i am looking for such pattern:
Code: Select all
<td width='15%' valign=top>41 </td>note: 15% is not constant it can be 15%,25% and 35%
i have many rows like this in html file, and i want to pick the same value which is bound in
<td width='15%' valign=top>
and
</td>
i am trying this code:
Code: Select all
preg_match_all("|<[td width='[0-9]{1}5%' valign=top>]+>(.*)</[/td>]+>|U",$data,$out,PREG_PATTERN_ORDER);
print_r($out[1]);can someone please help....
thanx