If you use the Microsoft Power Tools extension that supports regular .NET regular regular expressions, then what would you put in the replacement text box, given your regular expression above:
<$2>
where $2 refers to the second capture group in your regular expression, i.e. the text between the brackets.
Please note that this only works with Quick Find from Productivity Power Tools. The usual find / replace in Visual Studio generally uses a different syntax.
source share