Friday, August 17, 2012

Re: error in regex handling of \n?

On 08/17/12 12:51, Chris Jones wrote:
> On Fri, Aug 17, 2012 at 11:09:21AM EDT, Tim Chase wrote:
>> /r[^\n]
>> /r\_[^\n]
>>
>> to no avail.
>
> /r[^\r]

Well, bust my buttons. So "\n" is a newline on the search side, and
"\r" is a newline on the replacement side, but it's also a newline
on the search side if it's in a negated character class, but not in
a non-negated character class of a search?

Confusing.

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: