[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Negate a regexp
From: |
Leo |
Subject: |
Re: Negate a regexp |
Date: |
Mon, 19 Apr 2010 19:35:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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