On 02/29/2012 09:44 PM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: Delete lines not matching list > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,25108,25112#msg-25112 > > !? is negative lookahead. It is more complicated that you think. List > iteration in edit_line bundles works. I'd done it myself. I can't think of > a negative match regex at the moment.
I really need to work on my regexfu. I am exploring a slightly different path with this now using the join function to build a single regex (in case iterating with a negative delete was wacking the whole thing) "regex" string => join(".*|", "list"); (?!(1.*|2.*|3.*)).* this isnt working either, im sure the regex is wrong -- Nick Anderson <n...@cmdln.org> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine