[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \w does not work in a range
From: |
Decebal |
Subject: |
Re: \w does not work in a range |
Date: |
Sat, 11 Apr 2009 03:44:57 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Apr 11, 12:39 am, harven <har...@free.fr> wrote:
> Decebal <CLDWester...@gmail.com> writes:
> > I would like to define a regulair expression like [\w\-]+, but the \w
> > seems not to work inside the [ and ]. Is this true, or do I need to do
> > something special?
>
> use [[:word:]\-]+ instead.
> see the elisp manual, section character classes
> 34.3.1.2http://www.gnu.org/software/emacs/manual/html_mono/elisp.html#Char-Cl...
Thanks, I'll do that.