Forum: Cfengine Help
Subject: Re: Need a little regular expression help from my friends...
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,20020,20022#msg-20022

I haven't tried the code below yet but it should do what you are trying to 
reach. :-)


bundle edit_line tmp_fun
{
   replace_patterns:
       "(\.rpmsave\))"
       replace_with =>  value(".rpmsave | *.cf-before-edit)");
       "(\.rpmsave.\))"
       replace_with =>  value(".rpmsave\|\.cf-before-edit\)");
}


Cheers,
--Nakarin

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to