[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: |
Mon, 14 Oct 2002 12:19:17 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Good day!
Re: /href=raw/I s//href=pot/
On Fri, Oct 11, 2002 at 03:41:33PM +0200, Francesco Potorti` wrote:
> Look for lines matching /href=raw/ insensitively to case, then
> substitute whatever matched with /href=pot/.
This sounds good. So the command should be spelled as shown above and
whenever has the ``s'' command empty first part (use last regex)
it may not contain the ``I'' modifier. (An error would be issued
in such case.) The case sensitivity flag would be inherited from
the previous regex.
> Notice that the I modifier is the *only* modifier allowed after a
> selection regexp, and it's a GNU extension. Since I did not know about
> it, I did not ever suspect that a modifier could follow a selection
> regexp, while it is natural for me to think that an addition modifier
> exists for case-insenstive matches in the usual place for modifiers,
> that is, at the end.
OTOH, the ``I'' modifier to ``s'' command is the only one which actually
doesn't modify the act of substitution but only modifies the regex.
> Okay, anyway this is only one of the many issues with the sed manual,
> which is way under usual GNU manual standards :-(
If this is true, it would be nice if a volunteer was found for the task.
In case a patch for the documentation is written, I'd bet it won't be
lost.
Just mail any manual enhancements to address@hidden .
Regards,
Stepan Kasal