Given the following strin:
var s = "my [first] ga[m]e and [abc]de]\nThe [Game]"
Which regex do I use to match:
0 - [first]
1 - [abc]de]
2 - [Game]
I have tried var pattern2 = new Regex(@"\W\[.*?\]\W");
but it doesn't find [Game]
I also want to be able to match "[my] gamers\t[pro]
"
0 - [my]
1 - [pro]