I have a page I need to pull data from that has the following format for the portion I need:
<td style="font-weight:bold;">Business Information</td><td id="BusInfo" colspan="2">Some Company<br /><br />Business Phone Number: (111) 111-1111<br /><br />111 Some STREET<br />Some City, AA 11111<br /></td>
I can get all the data except the Street. Dom puts all the line breaks into one array element and my regex:
$comregex = '/<br \/><br \/>(.*?)<br \/>/';
Is pulling just the phone number. Any suggestions?
This worked, it broke each
into an array for me and was able to pull the street address out.
$comregex = '/(.*?)br \/>(.*?)<br \/(.*?)/';