通常我有以下情况: 有一个PONO类和属性列表。什么文本编辑器支持将找到的结果提取到另一个文件中?
public string UserName
{
get { return this.userName; }
set { if (this.userName != value) { SetDirty(); this.userName = value; } }
}
public string Password
{
get { return this.password; }
set { if (this.password != value) { SetDirty(); this.password = value; } }
}
public string Email
{
get { return this.email; }
set { if (this.email != value) { SetDirty(); this.email = value; } }
}
public string Title
{
get { return this.title; }
set { if (this.title != value) { SetDirty(); this.title = value; } }
}
是有工具,优选记事本++或VS插件,以提取输出的正则表达式到另一个文件?
例如:查找: “公共字符串(。*)$” 的结果:
UserName
Password
Email
Title
在一个新的文件
。
我在查找对话框中没有“标记”选项卡。记事本++ v5.8.6与默认插件。 Notepad ++ v5.8.6中的 – ikutsin 2011-03-18 11:00:14
在此功能的查找选项卡上有一个复选框,但我会建议更新记事本。 – stema 2011-03-18 11:17:21
您也可以在记事本++中删除“公共字符串”部分。标记全部后,执行搜索/书签/删除未标记的行。然后返回查找/替换。单击“替换”选项卡并(在使用显示的原始搜索字符串时)在替换字符串中放置\ 1。然后按全部替换。 – RufusVS 2014-09-18 18:01:15