Hi what's the best way to extract a var from a string based on a
regexp? I can't seem to find the right function.
I want to get the domain extension from any url.
examples:
http://www.domain.com/test.php $extension="com";
http://www.domain.co.uk/test.php $extension="co.uk";