there have some links, some are in javascript code. how to preg match there urls? (the urls could be end by .shtml, .html, / or .jsp, so I think regex them in single quotes, but nothing return.)
$sitelink = "javascript:pre('http://www.domain.com/cotagory/articles/2012/09/23/notice.shtml',%20%,500)";
//$sitelink = "javascript:box('http://www.domain.com/cotagory/articles/2012/09/23/sports/',%18%,500)";
if(strpos($sitelink,'javascript')===true){
preg_match_all("@'(.*)'@i",$sitelink,$matches);
var_dump($matches);
}