coopster - 4:49 am on Nov 17, 2005 (gmt 0)
You mean you want to get everything between script tags?
$pattern = "/<script[^>]*>(.*)<\/script>/Uis";
preg_match_all($pattern, $string, $matches);
The pattern matches anything that starts with '<script' followed by zero or more of anything that is not a '>', followed by a '>', followed by anything (and that part gets captured), followed by a closing '<script>' tag. The 'Uis' modifiers mean to make it Ungreedy, case-insensitive, and to match newlines in the dot metacharacter.