)(.+?)(<\/title>)/i"; preg_match($pattern,$page_content,$matches); echo "The title tag content is: ".$matches[2]; ?>