From: Leo <sdl.web@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Negate a regexp
Date: Mon, 19 Apr 2010 19:35:58 +0100 [thread overview]
Message-ID: <xbaityr7z3w1.fsf@cam.ac.uk> (raw)
In-Reply-To: 877ho3tjix.fsf@tux.homenetwork
On 2010-04-19 18:54 +0100, Thierry Volpiatto wrote:
> It will return \\coor because \ have to be escaped.
>
> (save-excursion (when (looking-back "^\\(\\\\[a-z]*\\)") (match-string 0)))
>
> It match on 1 also.
This is a special case for the special example in my previous post.
What about co\or ? It is still text contains word or symbol or \ (i.e.
\sw \s_ or \s\).
Leo
next prev parent reply other threads:[~2010-04-19 18:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 14:57 Negate a regexp Leo
2010-04-19 15:51 ` Drew Adams
2010-04-19 17:32 ` Leo
2010-04-19 17:54 ` Thierry Volpiatto
2010-04-19 18:35 ` Leo [this message]
2010-04-19 21:41 ` Thierry Volpiatto
2010-04-20 13:44 ` Leo
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xbaityr7z3w1.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).