Friday, August 17, 2012

Re: error in regex handling of \n?

On Fri, Aug 17, 2012 at 02:01:53PM EDT, Tim Chase wrote:
> 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.

Vim fun..?

Maybe it's just a matter of putting 2 & 2 together.. even (as Ben noted)
when they don't add up..?

All the more interesting, since in keeping with my usual non-technical
approach.. it was a post of yours on these aspects some two months ago
that made me think of this course of action.. ;-)

CJ

--
Focus follow mouse users will burn in hell!!!

--
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:

Post a Comment