I have a variable which stores the URL links for example:
$link = "https://www.google.no/search?num=100&newwindow=1&safe=off&site=&source=hp&q=example&oq=example"
$link = "http://www.example.com/forums/showthread.php?37dsf624-Get-everything-after-the-domain-name"
How do i extract the evrything which is after the domain name. for example i want from
$link = "https://www.google.no/search?num=100&newwindow=1&safe=off&site=&source=hp&q=example&oq=example"
to extract
search?num=100&newwindow=1&safe=off&site=&source=hp&q=example&oq=example
and from
$link = "http://www.example.com/forums/showthread.php?37dsf624-Get-everything-after-the-domain-name"
to extract
/forums/showthread.php?37dsf624-Get-everything-after-the-domain-name