I have urls that may start with "http" or "https" where I want to get the last parts of the url.
For example, in "http://pear.nadd.tron.com/engg/resources/dwglogs/sum/sumpdf/joesl.pdf
", I want to get just "resources/dwglogs/sum/sum
pdf". The first part is always one of two ways depending on whether the url has "http" or "https", and that is always followed by "://pear.nadd.tron.com/eng
g/". I want everything after that. I can't see a way to extract the last part of the url I want with SubString and/or IndexOf, so I tried using regular expressions. However, I can't get the example in the Microsoft help file to work (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconexampleextractingurlinformation.asp
In the example below, I would want the function to return "resources/dwglogs/sum/sum
pdf". Can you spot where I'm missing it? Thanks!
Function Extension(ByVal Url As String) As String
Dim r As New Regex("^(http[s]?://)pear.