[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regex-opt does not accept 'symbol as second arg?
From: |
Nikolaj Schumacher |
Subject: |
Re: regex-opt does not accept 'symbol as second arg? |
Date: |
Sat, 11 Oct 2008 14:10:18 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) |
"Lennart Borgman" <lennart.borgman@gmail.com> wrote:
> On Sat, Oct 11, 2008 at 12:02 PM, Xah <xahlee@gmail.com> wrote:
>> the regexp-opt accept a second argument of "'word", but it doesn't
>> accept "'symbol"?
>>
>> Shouldn't it?
Sure, why not.
> Would not the semantics be exactly the same?
No, "\\<\\(\\w\\|\\s_+\\)+" (word delimiters) doesn't match the entire
lisp symbol `-test'.
> But one thing I think would be useful is to be able to use numbers for
> the PAREN argument to get an explicitly numbered regexp group back.
Is it possible to modify the numbering at all? If so, how?
regards,
Nikolaj Schumacher