View Single Post
Old 02-27-2005, 06:04 PM   #3
mdavila
Green Mole
 
Join Date: Feb 2005
Posts: 11
Such as this?

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