Question : Trimming the beginning and end of a string

I have a series of strings in the following format: ABCD12-123456A.xml

I need to extract only the portion between the hyphen ("-") and period (".") characters.  So in the example above, I want to end up with "123456A"

How can I accomplish this?

Answer : Trimming the beginning and end of a string

1:
2:
3:
4:
5:
Dim s As String = "Hello-World.HowAreYou"
        Dim i1 As Integer = s.IndexOf("-")
        Dim extractedString = s.Remove(0, i1 + 1)
        Dim i2 As Integer = extractedString.IndexOf(".")
        extractedString = extractedString.Remove(i2)
Random Solutions  
 
programming4us programming4us