J
jason
How does one extract the the final /folder/ name in a URL string of unknown
length and folder division which may come in in slightly different (albeit
identical results) as in the following:
For instance:
www.catamarans.com/charter/bareboat/oceanspeed/index.asp
www.catamarans.com/charter/bareboat/oceanspeed/
www.catamarans.com/charter/bareboat/oceanspeed/?m=SM
I would wish to only get back:
"oceanspeed"
I would appeciate code examples on this. Many thanks.
Jason
length and folder division which may come in in slightly different (albeit
identical results) as in the following:
For instance:
www.catamarans.com/charter/bareboat/oceanspeed/index.asp
www.catamarans.com/charter/bareboat/oceanspeed/
www.catamarans.com/charter/bareboat/oceanspeed/?m=SM
I would wish to only get back:
"oceanspeed"
I would appeciate code examples on this. Many thanks.
Jason