I would like to find a way to grab the extension of a file that I am linking.
ie.
<a href="worddoc.doc">Some word file</a>
<a href="pdfdoc.pdf">Some adobe file</a>
and grab the .doc or .pdf file extension.
Is this a semi-easy task?
I have done something similar with getting the text that sits in between the <title> tags but that doesn't seem to apply to this example.
If someone can point me in the right direction, I would appreciate that.