help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Regexp for matching a symbol (identifier) in emacs-lisp


From: Nikolaj Schumacher
Subject: Re: Regexp for matching a symbol (identifier) in emacs-lisp
Date: Fri, 10 Oct 2008 17:47:43 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Nordlöw <per.nordlow@gmail.com> wrote:

> Does Emacs provide a shorter way of matching an emacs-lisp symbol
> (identifier) than the following:
>   "\\(" "\\(?:" "\\w\\|\\s_" "\\)+" "\\)"

I don't think so.  In fact, you should also add \\_< and \\_>, so it
doesn't match half symbols.

regards,
Nikolaj Schumacher




reply via email to

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