Say you need to replace all of the ocurrences of
MyMethod<MyType>("Identity");
with something like
(MyType)Fields["Identity"];
Then, you have to find
MyMethod\<{:w+}\>\(\"{:w+}\"\);
and replace it by
(\1)Fields["\2"];
Simple.
Notice two things here:
- the backslashes before every reg exp metacharacter in the Find statement
- the absence of them in the Replace statement
No comments:
Post a Comment