On Fri, Apr 29, 2011 at 02:36:41PM -0400, no-re...@cfengine.com 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
>Help-cfengine@cfengine.org
>https://cfengine.org/mailman/listinfo/help-cfengine

-- 
Jesse Becker
NHGRI Linux support (Digicon Contractor)
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to