help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behavior in search-forward-regexp?


From: Barry Margolin
Subject: Re: Strange behavior in search-forward-regexp?
Date: Sun, 12 Feb 2006 04:58:53 -0500
User-agent: MT-NewsWatcher/3.4 (PPC Mac OS X)

In article <m27j825iw0.fsf@gmail.com>,
 Mathias Dahl <brakjoller@gmail.com> wrote:

> Barry Margolin <barmar@alum.mit.edu> writes:
> 
> > Because the regular expression . matches any character except newline, 
> > while [^;] matches any character except ';'.  So newline matches [^;].
> 
> So what happens is that the match begin at the empty line then and
> then "wraps around" to the next row? How can I avoid it?

Use [^;<newline>] in the regular expression, where <newline> is entered 
with C-q C-j.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]