View Single Post
Old 09-14-2005, 09:38 AM   #5
mdavila
Green Mole
 
Join Date: Feb 2005
Posts: 11
Here is the code

//extracts title
if (preg_match_all('/< *h2 *>(.*?)< *\/ *h2 *>/is',$text,$regs,PREG_SET_ORDER)) {
$title = trim($regs[1][1]);
}
else {
$title = "";
}
mdavila is offline   Reply With Quote