Thread
:
Extracting H2 tag
View Single Post
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
View Public Profile
Find More Posts by mdavila