How to get file extension of online file having no extension in url
<p>I wanted to get the file extension of online file but problem is that some files are not having extension in their url.
For Example
<a href="http://www.example.com/page?=10" rel="nofollow">http://www.example.com/page?=10</a></p>
