Forum: CFEngine Help Subject: Re: Delete lines not matching list Author: bahamat Link to topic: https://cfengine.com/forum/read.php?3,25108,25135#msg-25135
You can use pcretest(1) (usually included with libpcre, or pcre packages) to test your regular expression with various input. Example: $ pcretest PCRE version 8.02 2010-03-19 re> /^(?!(1|2|3).*).*$/ data> 1 No match data> 2 No match data> 3 No match data> 4 0: 4 data> a 0: a data> % 0: % data> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine