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]

posted @ 2012-12-29 21:54  knightluffy  阅读(232)  评论(0编辑  收藏  举报