I have a string which at some point contains the set of characters in the following format [123].
[123]
What I would like to do is get the characters between
You could use regular expression.
Dim s, result As String Dim r As RegularExpressions.Regex s = "aaa[bbbb]ccc" r = New RegularExpressions.Regex("\[([^\]]*)\]") If r.IsMatch(s) Then result = r.Match(s).Value Else result = "" End If