Re: [Clip] regex clip to remove lines not containing
- Don - HtmlFixIt.com wrote:
> John Shotsky wrote:Hi Don,
>> Oops, left out a bracket..sheesh.
>> ^!Replace "^\s*[A-Z].*\R" >> "" ARSTW
> Yes John.
> That was what I was trying to do. I was trying to figure it out in
> reverse in my mind, I guess. I was trying to negate the regex I had.
> Not negate in reverse or something like that.
> Sheri, I was just playing with: ^!SetArray %Array%=^$GetReSubStrings$
> As a followup to your getdocmatchall suggestion. But I think John's
> solution is what I was after this time.
I don't see a need for arrays or substrings. In fact, your pattern
doesn't have any substrings. This is what I would have done (but I used
five, not four, spaces in front of \d.* to match your sample):
;end of clip