operator RegularExpressions.Regex("\[([^\]]*)\]") will return the value inside the bracket and the bracket of it!
I used this statement to return an IPAddress surrounded by () inside a long string: -
Dim IPRegEx As Regex = New Regex("(?<=\().*?(?=\))")
source share