bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep --perl-regexp and empty match


From: Jori Mantysalo
Subject: Re: grep --perl-regexp and empty match
Date: Fri, 4 Jul 2003 17:15:59 +0300 (EEST)

On Fri, 4 Jul 2003, Stepan Kasal wrote:

> To the original problem:
> the bug is that grep -o doesn't print empty matches.  If it were fixed, then
>
>       echo abc | grep -o 'X*'
>
> would output four empty lines.

But why grep prints nothing after it at once see empty match? See:
 echo 'abbbbc abbbc ac abbc abc' | grep -o -P '(?<=a)b*(?=c)'

-- 
Jori Mäntysalo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]