On Wed, Jan 23 2008, Peter Münster wrote: > On Mon, Jan 21 2008, Steffen Wolfrum wrote: > > > > I would like to use in my documents double braces for the footnote – > > for easily matching entire footnotes with RegEx (thus it can't > > confuse with the nested braces) ... > > > > text\footnote{{this is {\it one} tiny note\index{note}!}} > > > > ... and match the entire footnote with search regex for \\footnote\{\ > > {.+\}\} > > have you already tried > http://archive.contextgarden.net/message/20060730.070820.14c7c91e.en.html > (extended regexp)?
I've just seen, that it does not work for nested braces: \footnote{x{y}z}: ok \footnote{x{y{z}}}: not ok The next one (normal regexp, not extended) has support for up to one level of nesting: \\footnote{[^{}]*\([^{}]*{[^{}]*\([^{}]*{[^{}]*}[^{}]*\)*[^{}]*}[^{}]*\)*[^{}]*} These examples seem to work: \footnote{x{y}z} \footnote{x{y{z}}} \footnote{x{y}z} \footnote{x{y{z}}x{y{z}}x{y}z} \footnote{x{y{z}}x{y{z}y{z}y}x{y}z} Cheers, Peter -- http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________