Cfengine Help: Re: replace_pattern with quotes [Solved]

2011-01-10 Thread no-reply
Forum: Cfengine Help Subject: Re: replace_pattern with quotes [Solved] Author: Ferjama Link to topic: https://cfengine.com/forum/read.php?3,20037,20062#msg-20062 Here is the solution for my Problem: replace_patterns: 'destination messages . file.*messages..; .;' replace_with =

Re: Cfengine Help: Re: replace_pattern with quotes

2011-01-07 Thread Daniel V. Klein
Are you certain that the pattern matches? I see an \{ and no matching \} in your promise. Likewise, I see spaces in your pattern - are the number and type of whitespace an exact match? You might want to consider using \s+ or \s* instead of just a single space. -Dan On Jan 7, 2011, at 10:48

Cfengine Help: Re: replace_pattern with quotes

2011-01-07 Thread no-reply
Forum: Cfengine Help Subject: Re: replace_pattern with quotes Author: Ferjama Link to topic: https://cfengine.com/forum/read.php?3,20037,20042#msg-20042 Hi bbomgardner, I used the '\' bevor but it dosn't work. This is my new pattern: 'destination messages \{ file\(\"/var/log/messages\"\);'

Cfengine Help: Re: replace_pattern with quotes

2011-01-07 Thread no-reply
Forum: Cfengine Help Subject: Re: replace_pattern with quotes Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,20037,20038#msg-20038 At quick glance, I think you'll first need to address the regex special characters in the string you want to replace. http://www.regular-