On Fri, Apr 29, 2011 at 02:36:41PM -0400, [email protected] wrote: >Forum: Cfengine Help >Subject: Re: Cfengine Help: regex help >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,21710,21712#msg-21712 > >Jesse Becker Wrote: >------------------------------------------------------- >> >This is the regext to remove the unwanted lines >> > >> >(?<!00 3 1 \* \*)\s*/usr/scripts/util/distributed-multipath-ck.sh\s*(?!2>&1 >> >> /dev/null) >> ^^^^^ >> Do you want to use \s+ here? > >I can remove \s* and use a space inside or outside the look behind but still >no match.
Odd. I dumped your 5 lines into a file, and ran it against pcregrep. Using \s*, I got two matches. Using \s+, I got the first one (the one starting "01 3 1...") > >_______________________________________________ >Help-cfengine mailing list >[email protected] >https://cfengine.org/mailman/listinfo/help-cfengine -- Jesse Becker NHGRI Linux support (Digicon Contractor) _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
