Why MS decided to use a non-standard RegEx parser for Visual Studio's Find/Replace controls, I don't know. All I do know is that I forget the syntax EVERY FRIGGING TIME in the heat of battle. So, here's the skinny:
Match group definition using CURLY BRACE.
Match group replacement using BACKSLASH.
So to turn <bob> to *bob* use:
\<{.@}\>
and replace with
*{\1}*
NOTE the .@ is the VS 'non-greedy' match pattern
0 comments:
Post a Comment