vs2012编辑器的正则替换一例

case:

Deployment.get_Current().get_Dispatcher().BeginInvoke(delegate
{
MessageBox.Show("Exception!");
MessageBox.Show(e.get_ExceptionObject().get_Message() + "\n" + e.get_ExceptionObject().get_StackTrace());
wph.reportError("nc_rc", e.get_ExceptionObject());
});

serch content: get_(\w+)\(\)

replace content: $1(尼玛的vs又改回来了。。坑爹啊。。)

case 2:

stringBuilder.Append(MapUtil.string_0.get_Chars(num2));

search content:.get_Chars\(([\w\d]+)\)

replace content:[$1]

原文地址:https://www.cnblogs.com/knightluffy/p/2839327.html