21852Re: [Clip] Remove all lines not containing something
- Jun 30, 2011Flo wrote:
>Life would be perfect if lookbehinds could accept variable-length patterns...
> (?<!org|net) = Negative Lookbehind Assertion matching a position where you do NOT see 'org' or 'net' when looking behind
To "not capture" the term located anywhere in the line (e.g. in "John Doe;john@...;555-555-5555") a lookahead could offer the necessary flexibility:
^!Replace "^(?!.*(org|net).*$).+(\R|\Z)" >> "" WARS
- << Previous post in topic Next post in topic >>