* Re: emacs lisp regexp
[not found] <47d6b827$0$22957$426a74cc@news.free.fr>
@ 2008-03-12 5:18 ` Kevin Rodgers
0 siblings, 0 replies; only message in thread
From: Kevin Rodgers @ 2008-03-12 5:18 UTC (permalink / raw)
To: help-gnu-emacs
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 gnu-emacs-@gnu.org is intended for working source
code, not discussion. Please post questions to gnu.emacs.help aka
help-gnu-emacs@gnu.org]
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-12 5:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <47d6b827$0$22957$426a74cc@news.free.fr>
2008-03-12 5:18 ` emacs lisp regexp Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.