Re: sed bug

Slawomir Kuszczynski <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <CADHj4pjiZQs4Xwdm-cSujncXP-umo2x43dfVviu372qYzvYQXg@mail.gmail.com>
Hi,

Thanks for help

You are right.
It was my fault, sorry for trouble.



2013/2/15 Davide Brini <[email protected]>

> On Thu, 14 Feb 2013 10:12:17 +0100, Slawomir Kuszczynski
> <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.