Forum: Cfengine Help
Subject: Re: Cfengine Help: Function readstringarrayidx () - Need Regex help
Author: joe77
Link to topic: https://cfengine.com/forum/read.php?3,22626,22675#msg-22675
i Daniel,
thanks for your great answer. I like your regex but strangely in Cfengine
(unlike in a testing
You're using the "comment" regex to match lines that DON'T look like
something... Try this:
"dim_array" int =>
readstringarrayidx("array","datafile","^(?!VM;[^;]*;name1;).+",";",10,1);
The regex says "anything, as long as you don't seeVM;stuff;name1;, is a
comment". I think it'll work...
Forum: Cfengine Help
Subject: Function readstringarrayidx () - Need Regex help
Author: joe77
Link to topic: https://cfengine.com/forum/read.php?3,22623,22623#msg-22623
Hi,
I have a problem with readstringarrayidx ()
1. I want to read from this example datafile
###
VM;bv10;nam