keep/extract strings found by find/replace
Posted: Tue Jul 15, 2003 6:37 pm
hi 
can anyone tell me if there is a way that i can search(using find/replace) for anything between /(a forward slash) and -(a hyphen, obviously its not realy important what its between) then copies the instances it finds to a new file or to the clipboard or wherever... normally i could bookmark the lines and copy the bookmarked lines, except that every line has an instance of / ..... -
concrete example:
what im "finding"
/ [[:alpha:]\*'\. ]* -
in a file that looks like this:
/ ' t - b * l - k s n /
/ ' d - x * - . l A n /
/ . x - b * - ' l x - n p/
thanks
(ive never written a macro before so im hoping someone already knows of one...)
can anyone tell me if there is a way that i can search(using find/replace) for anything between /(a forward slash) and -(a hyphen, obviously its not realy important what its between) then copies the instances it finds to a new file or to the clipboard or wherever... normally i could bookmark the lines and copy the bookmarked lines, except that every line has an instance of / ..... -
concrete example:
what im "finding"
/ [[:alpha:]\*'\. ]* -
in a file that looks like this:
/ ' t - b * l - k s n /
/ ' d - x * - . l A n /
/ . x - b * - ' l x - n p/
thanks