【工具】VS2010查找替换正则表达式

来源:互联网 发布:java数据接口怎么写 编辑:程序博客网 时间:2024/05/22 14:04

原文连接

原文连接:传送门

使用正则表达式替换

期望查找文本:

ResourceManager.GetString("filename", resourceCulture)

期望替换文本:(蓝色为不断变动的内容,比如a.txt,b.txt)

ResourceManager.GetString(Path + "filename", resourceCulture)

查找正则表达式:

ResourceManager\.GetString\("{.+}", resourceCulture\)

替换正则表达式:

ResourceManager.GetString(Path + "\1", resourceCulture)


原创粉丝点击