On 02/29/2012 10:08 PM, Nick Anderson wrote:
> Getting closer
> 
>     vars:
>         "regex" string => join("|", "list");
> 
>     delete_lines:
>         "^(?!($(regex)).*).*$"
> 
> this almost works like I want it, it makes this regex
> ^(?!(1|2|3).*).*$

I dont know what I was thinking, this did do exactly what i wanted.

Thanks


-- 
Nick Anderson <n...@cmdln.org>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to