bug-grep
[Top][All Lists]
Advanced

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

Non-greedy option greedy?


From: SanskritFritz
Subject: Non-greedy option greedy?
Date: Thu, 13 Nov 2008 14:41:21 +0100

Hi there,
i execute this command in bash (cygwin):

echo CC-3623843-4/2008 | grep -P -o --regexp=-.*?/

and I get this result:

-3623843-4/

Shouldn it be

-4/

Thanks in advance for your help!
SanskritFritz


reply via email to

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