Cfengine Help: Re: Cfengine 3.1.4 and replace_patterns

2011-02-03 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine 3.1.4 and replace_patterns Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,20414,20422#msg-20422 Hi, Neil: I tried with a simple one but it was too simple being non-convergent. :-( I really have to get into the habit using t

Cfengine Help: Re: Cfengine 3.1.4 and replace_patterns

2011-02-02 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine 3.1.4 and replace_patterns Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,20414,20420#msg-20420 Nakarin's response is right, and the reason is the same I mentioned the other day in this thread, namely: (?! ...) is a zero-width neg

Cfengine Help: Re: Cfengine 3.1.4 and replace_patterns

2011-02-02 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine 3.1.4 and replace_patterns Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,20414,20418#msg-20418 Please try this code. It should do something. :-) edit_line => replace_line("^D\{MTAHost\}\[(?!$(g.mailrelay)).*","D\{MTAHost\}\[$(g

Cfengine Help: Re: Cfengine 3.1.4 and replace_patterns

2011-02-02 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine 3.1.4 and replace_patterns Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20414,20416#msg-20416 Have you tried starting with simple search and replace strings to ensure that overall idea is sound? Also, did you try the regex va