I am trying to do the screen scraping on a website, i have the following div tag which has the data, which i would like to scrape.
I am using the pattern which is below, but it seems to have a problem, can you please help, it is not showing any data.
<div id="subtext" style="padding-top: 8px;">
<span style="line-height:18pt;">
<strong>Frank Sanchez</strong><br>
</span>
12345 SW 21st Street<br>
Miromar, FL 33321-4286<br>
(914) 213-1234<br>
<a href="/10668/track/10126/search/FindNeighbors?search_id=10311351887581679174&element_id=0">Find Neighbors</a>
<br>
</div>
I am using the following pattern and it seems there is something wrong in it. i do not see it is picking up any data between those tags:
$pattern = "@<div id=\"subtext\".*>.*<strong>([a-zA-Z ]*)</strong>.*</span>([a-zA-Z0-9 ]*)<br>([a-zA-Z0-9, -]*)<br>([a-zA-Z0-9\(\) -]*)<br>@si";
Thank you very much for the information