Skip to content

Instantly share code, notes, and snippets.

@phongjalvn
Created July 29, 2010 07:58
Show Gist options
  • Save phongjalvn/497571 to your computer and use it in GitHub Desktop.
Save phongjalvn/497571 to your computer and use it in GitHub Desktop.
if (preg_match("/(?<=\<title\>)(.+?)(?=\<\/title\>)/s", $web_data, $m)) {
echo $m[1];
echo " - One";
}
else{
echo "No match!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment