Regex to find brackets and text

regex, visual-studio-2010

Solution

You need to escape the opening and closing brackets, as they are regex metacharacters. Something like this:

\[Name\]

Problem

I am trying to do a find replace in visual studio and I cant seem to find how to find `[Name]`using regular expressions...I can find the first bracket with help from other questions on stack but it wont find both the beginning and the end AND recognize the text inside the brackets.

Original source