i want to split an total url like it is in format :
i want to split it and just want to get http://red.domain.net/ck.php?id=o2SjLKWuoKZ9Uy9sLzShozIlnJD9ZGNkZwRlK196 o25ynJD9ZwtlAy9sL2V9ZmyvZmSxAmEzAz
what will be this ?
i tried like:
but not successful,
can any one help?
HTML Code:
<a href='http://red.domain.net/ck.php?id=o2SjLKWuoKZ9Uy9sLzShozIlnJD9ZGNkZwRlK196o25ynJD9ZwtlAy9sL2V9ZmyvZmSxAmEzAz'>test test test etc..</a>
what will be this ?
i tried like:
PHP Code:
$data = "<a href='http://red.domain.net/ck.php?id=o2SjLKWuoKZ9Uy9sLzShozIlnJD9ZGNkZwRlK196o25ynJD9ZwtlAy9sL2V9ZmyvZmSxAmEzAz'>test test test etc..</a>";
preg_match('@href="(.+?)"@is',$data,$match);
$get = $match[1];
can any one help?
Comment