Page 1 of 1

Remove all from the beginning

Posted: Thu Dec 23, 2010 4:29 pm
by canis
I have a lot of code lines with similar structure: <tag>(.... ,"{keyword}", .....)
How to extract {keyword} only?
How to remove (replace with nothing) everything from the beginning of the line until ," and from ", to the end of the line?

Re: Remove all from the beginning

Posted: Fri Dec 24, 2010 8:16 am
by DataMystic Support
1. Use a find/replace, with Extract Option checked, using an EasyPattern of
<tag>(.... ,"[ capture(1+chars) ]", .....)

Replace with $1.

2. Use a find/replace, with an EasyPattern of
[lineStart, 0+ not cr or lf ],"[ capture(1+chars) ]",[ longest 0+ not cr or lf, lineEnd ]

Replace with $1.