Reply to php extract variable from a string using regexp
Posted by Ciaran on 07/17/07 19:28
Hi can someone give me hand with this please?
What's the best way to extract the extension from the url?
example:
$string="http://www.domain.co.uk/anypage.html"
In this example, I'd be looking for: "co.uk" but it could be "com",
"net" , or any other extension