Usually I have the following situation: There is a PONO class with list of the properties.
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; } }
}
Is there are tool, preferably Notepad++ or VS plugin, to extract the regex output into another file?
For example: Find: "public string (.*)$" results:
UserName
Password
Email
Title
in a new file.
In Notepad++ use Search
/Find
dialog and in Mark
tab check the Bookmark line
checkbox - after Mark all
you will have bookmarks on all desired lines.
The last step is Search
/Bookmark
/Copy bookmarked lines
and paste them in a new file, where you can remove the public string
part.
From v5.8.7 changelog:
I guess that the Bookmark line
checkbox and Mark all
are placed in another tab in v5.8.6.
Not a text editor solution, but
grep "public string .+$" < file | sed "s/public string (.+)$/\1/" > out
should work. Untested.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With