I am trying to extract the bracketed region of a string into another string. For example
(abc) - (xyz)
How would I extract the 'abc' and 'xyz' into two separate strings?
This is what I have tried to do so far:
If (operation.Contains("(")) Then Dim first = operation.Split("(") Dim firsteb = operation.Split(")")
But I then got confused because I could not work out how to avoid it from going to the first and last brackets in the above example