all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Slass <miknrene@drizzle.com>
Subject: Re: matching [^/]
Date: Fri, 09 Jul 2004 08:29:27 -0700	[thread overview]
Message-ID: <m37jtd19ns.fsf@eric.rossnet.com> (raw)
In-Reply-To: 13883bbe.0407090039.3ceb71eb@posting.google.com

simon_strobl@yahoo.de (Simon Strobl) writes:

>Hello,
>
>suppose a buffer contains the following string and you want to match
>the part "// VP1zr".
> 
> // VP1zr // 1(0)
>
>I typed "//[^/]+" into the re-builder. It matched the whole line. I
>could not find an explanation for this behaviour on the Emacs info
>site.
>
>Can someone explain it to me? 
>
>
>Simon

re-builder is highlighting all matches to your regexp, and your string
matches twice:
'// VP1zr '
'// 1(0)'

The two matches are adjacent, so the highlighted regions touch each
other, and they look like one.


-- 
Mike Slass

  reply	other threads:[~2004-07-09 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-09  8:39 matching [^/] Simon Strobl
2004-07-09 15:29 ` Michael Slass [this message]
2004-07-12 13:17 ` Simon Strobl
     [not found] <200407091601.i69G1fL15330@dell3.ma.utexas.edu>
2004-07-11 16:12 ` Joe Corneli

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=m37jtd19ns.fsf@eric.rossnet.com \
    --to=miknrene@drizzle.com \
    /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.