[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed bug
From: |
Slawomir Kuszczynski |
Subject: |
Re: sed bug |
Date: |
Fri, 15 Feb 2013 11:13:02 +0100 |
Hi,
Thanks for help
You are right.
It was my fault, sorry for trouble.
2013/2/15 Davide Brini <address@hidden>
> On Thu, 14 Feb 2013 10:12:17 +0100, Slawomir Kuszczynski
> <address@hidden> wrote:
>
> > Hi,
> >
> > I found bug in sed. It is related to reverse matching, see examples
> below:
> >
> > Result of this simple sed:
> > echo ABC1234_1.0 | sed -r 's/^[A-Z]*([0-9])/\1/'
> > is:
> > 1234_1.0
> > but should be:
> > 1
>
> No, it should not. Think what should be the result of
>
> echo abc | sed -r 's/(c)/\1/'
>
> --
> D.
>
--
BR,
Slawomir Kuszczynski
- sed bug, Slawomir Kuszczynski, 2013/02/14
- Re: sed bug, Paolo Bonzini, 2013/02/14
- Re: sed bug, Davide Brini, 2013/02/15
- Message not available
- Re: sed bug,
Slawomir Kuszczynski <=