Quote:
Originally Posted by st_albert
so, how did you use grep to solve this problem?
and what OS?
ETA: my textmod fu is perl >> sed > awk, but that's because I'm too frikkin lazy to learn much at my age. But occasionally I do get curious. now's your chance! 
|
I am not a GREP expert. I use PowerGREP from JGSOFT. I selected "FILE SECTIONING" and entered the following in the "SECTION SEARCH" pane.
Code:
<div class="stanza">.*?</div>
When I selected "PREVIEW" all of the lines within each stanza were displayed. Black Magic.
Below the "SECTION SEARCH" pane is a SEARCH AND REPLACE pane which allows modification of the data found.
So simple.

Clever people these JSOFT folks. I've used their tools for years. I just have to be smart enough to use them. But they do have a great forum setup for help and information with a large following so I can ask my dumb questions.