Forum: Cfengine Help Subject: Re: regex help Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,21705,21719#msg-21719
neilhwatson Wrote: ------------------------------------------------------- > To make matters more interesting cfengine.com's > regex tester says the regex is OK but for edit > files and processes it shows 'undefined error'. I'd be inclined to start by trying it without the :? at the beginning of the first parenthetical expression, if you think it has a problem with the regex itself. That sequence indicates to not remember the match, and is just a habit I tend to use frequently if I'm only grouping and not remembering. It causes a moderate performance hit if you don't use the "don't remember" and have a specific set of modules loaded in a perl script (specifically the English module). But that's pretty much irrelevant in this situation. We can get into the questionable sequence of events that led me to be performance-tuning perl at some later date. ;) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine