all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
Subject: Re: Strange behavior in search-forward-regexp?
Date: Sun, 12 Feb 2006 04:58:53 -0500	[thread overview]
Message-ID: <barmar-209E03.04585312022006@comcast.dca.giganews.com> (raw)
In-Reply-To: m27j825iw0.fsf@gmail.com

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	other threads:[~2006-02-12  9:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-11  1:43 Strange behavior in search-forward-regexp? Mathias Dahl
2006-02-11  2:04 ` Barry Margolin
2006-02-11  9:45   ` Mathias Dahl
2006-02-12  9:58     ` Barry Margolin [this message]
2006-02-12 14:58       ` Mathias Dahl
2006-02-12 21:19         ` Barry Margolin
2006-02-11 11:48 ` Peter Dyballa
2006-02-11 19:00   ` Mattis
2006-02-11 19:33     ` Peter Dyballa
     [not found]     ` <mailman.17.1139690074.2858.help-gnu-emacs@gnu.org>
2006-02-11 21:43       ` Mathias Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-209E03.04585312022006@comcast.dca.giganews.com \
    --to=barmar@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.