[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed: Case-insensitive matching does not work
From: |
Stepan Kasal |
Subject: |
Re: sed: Case-insensitive matching does not work |
Date: |
Fri, 11 Oct 2002 07:56:12 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
On Thu, Oct 10, 2002 at 05:13:42PM +0200, Francesco Potorti` wrote:
> I tend to begin all my sed instructions with a regexp qualifier, ...
> so I may need to review my habits.
no, you need not. Writing
/href=raw/I s//href=pot/I
should be as readable as other sed instructions. It expresses clearly
what the line addess is and also that the substitution is performed
case insensitive.
> Only it should be stressed in
> the manual, while as far as I know it is not even mentioned.
...
> I think the bug should be downgraded to a wishlist asking for
> documentation about this issue.
I wasn't even able to find the /foo/s//bar/ shortcut form in the manual,
which is probably much more important.
It's mainly this shortcut which is most confusing when combined with
the ``I'' flags; in all other cases, the address part and the command part
of the instruction are independent, thus documented in different nodes of
the manual.
Have a nice day,
Stepan Kasal