View Single Post
Old 08-04-2012, 03:43 AM  
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by fris View Post
where is the value for the link block stored to grab the certain block?
assign it to a variable, ex. $link_block

Code:
$link_block = preg_replace( '|.*?</h3>(.*?)<h3>.*|s', '$1', $input );
fwiw, I prefer using xpath too like alcstrategy mentioned, but probably overkill depending on this need.
__________________

Last edited by Brujah; 08-04-2012 at 03:46 AM..
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote