Hello Installer, Thanks for the reply.
I am using preg_match_all: I do have lot of div tags in the url, where i am trying to scrape the information. it is a 411.com website, all i am trying to do is get there name, address and phone number:
Here is the Div tag which actually has that information:
<div id="subtext" style="padding-top: 8px;">
<span style="line-height:18pt;"><strong>Juan
 Cruz</strong><br></span>1584 SW 21st St<br>Miramar, FL 33015-4286<br>(954) 123-4567<br><a href="/10668/track/10126/search/FindNeighbors?search_id=30051320438651254659&element_id=0">Find Neighbors</a><br><span style="line-height:15pt; white-space: nowrap;"><br><strong>Save/Customize Listing in:</strong><br><a href="http://www.whitepages.com/10815/log_feature/save_personal/myinfo/set_origin/add_contact/update_contact?ufsr=1&lname=Bekkary&fname=Rajender&h_street=15844%20SW%2021st%20St&h_city=Miramar&h_state=FL&h_zip=33027&h_country=US&h_pri_phone=(954)%20438-2163" onclick="javascript:Bounce('411');"><nobr>My AddressBook</nobr></a> or
<a href="http://www.whitepages.com/10815/log_feature/vcard/search/vcard/Rajender_Bekkary.vcf?search_id=30051320438651254659&lower=1" onclick="javascript:Bounce('411');">Outlook</a></span><br><br><a href="/10668/map_provider?full_address=15844%20SW%2021st%20St&city=Miramar&state=FL&zip=33027&country=US&lat=25.989338&long=-80.359200">Map this location</a><br><a href="/10668/maps/FL?npa=954" title="Area code map">Area Code Map</a><br><a href="/10668/log_feature/email_to_friend/tell_others/listing?name=Bekkary&firstname=Rajender&full_address=15844%20SW%2021st%20St&city=Miramar&state=FL&zip=33027&country=US&full_phone=(954)%20438-2163">E-mail Listing to Friends</a><br><br>
Local Time:
<span style="white-space: nowrap;">10:14 a.m.</span><br>Eastern Daylight Time<br><br>
</div>
I am doing the following to get names: into an array:
$text = @file_get_contents($url);
$pattern = "@<div id=\"subtext\".>.<strong>([a-zA-Z ]?)</strong><br>\s</span>\s([a-zA-Z0-9 ]?)<br>\s([a-zA-Z0-9, -]?)<br>\s([a-zA-Z0-9() -]*?)<br>@si";
preg_match_all($pattern, $text, $matches);
array_shift($matches);
echo '<pre>';
print_r($matches);
Please help for some reason the above ppatern does'nt return any values under the array.
Thank you very much.