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

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

Re: emacs lisp regexp


From: Kevin Rodgers
Subject: Re: emacs lisp regexp
Date: Tue, 11 Mar 2008 23:18:40 -0600
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

Paul Lennon wrote:
Hi,

    I search a regexp that match such patterns

    {\sqrt{2}+1}


    This regexp {[^\}]+} don't work; evidently.


    an idea ?

Thanks.

[gnu.emacs.sources aka address@hidden is intended for working source
code, not discussion.  Please post questions to gnu.emacs.help aka
address@hidden

The regexp looks right to me except for the backslash, because the only
characters within a square-bracketed character set are: [-^

So the regexp is {[^}]+}

Note that even extended regular expressions are mathematically incapable
of matching nested/recursive patterns.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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