Let’s assume I have the following text:
“something [234][3243]”
I am trying to pull the values in between the square brackets. I came up with the following regex expression: .*\[(.*)\].* however this only allows me to pull the last value in between the brackets, in this example 3243. How do I pull all values, meaning get more groups within my Match object.
You can do this with grouping parens, but if you use the look back and look ahead, then you will not need to pull the groups out of the match.