[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non-greedy option greedy?
From: |
Satyaanveshi |
Subject: |
Re: Non-greedy option greedy? |
Date: |
Thu, 30 Sep 2010 07:44:21 -0700 (PDT) |
Hi,
You can use:
echo CC-3623843-4/2008 | grep -E -o --regexp=-[^-]+/
Thanks
Bugzilla from address@hidden wrote:
>
> 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
>
>
--
View this message in context:
http://old.nabble.com/Non-greedy-option-greedy--tp20484182p29846516.html
Sent from the Gnu - Grep mailing list archive at Nabble.com.
- Re: Non-greedy option greedy?,
Satyaanveshi <=