[Top][All Lists]

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

Re: matching [^/]

From: Michael Slass
Subject: Re: matching [^/]
Date: Fri, 09 Jul 2004 08:29:27 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

address@hidden (Simon Strobl) writes:

>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
>Can someone explain it to me? 

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 via email to

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