Given a file path URL such as http://example.com/video.flv?start=5, I want to get out video.flv.
Path.GetFileName("http://example.com/video.flv?start=5") yields video.flv?start=5, which is more than I want. I can’t find anything relevant in the Uri class either. Am I missing something?
Various ways, but one option: