boneyard
Apr 25, 2012MVP
getting first part of uri
im looking for a way to only get the first part of an uri
so in all case i should only get test1
http://something/test1
http://something/test1/
http://something/test1/something
http://something/test1?value=8
findstr seems to be an interesting option, but i don't believe it can have several possibilities for the findstr command deliminator, so it terminates on for example / and ?, what would be a way to do this?