cyphix
05-05-2009, 01:35 PM
Can anyone tell me why I am not just getting the URL from the below code returned in $matches[1]..... The returned URL starts correctly, but it also includes a ton of data after the closing quotes after the URL portion is finished.
if (preg_match('~</script><br /><br /><a href="(.+)" class="link" target="_blank">~i',$html,$match)) {
// blah
}
Thanks!
if (preg_match('~</script><br /><br /><a href="(.+)" class="link" target="_blank">~i',$html,$match)) {
// blah
}
Thanks!