通常我有以下情况:有一个带有属性列表的 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; } }
}
是否有工具,最好是 Notepad++ 或 VS 插件,将正则表达式输出提取到另一个文件中?
例如: 查找:"public string (.*)$" 结果:
UserName
Password
Email
Title
在一个新文件中。