[OS X TeX] regexp for matching entire footnotes

Kino quinon at rio.odn.ne.jp
Sun Jul 30 10:06:18 EDT 2006


On Sunday, 2006-07-30, at 22:54:13 +0900, Sergei Mariev wrote:

> I have tried this one, but I get the error "never ending recursion"  
> and the search is not performed. I do have Ruby selected. Perhaps  
> some other options are necessary to make it work?

But what options are checked in your... TeXShop? Usually I have only  
"Find Empty" and "Capture Group" checked.

The expression works even with all options unchecked. I just tried.


Kino


> Am 30.07.2006 um 15:26 schrieb Kino:

>> With TeXShop or other apps having OgreKit Find Panel, the  
>> following works.
>>
>> \\footnote{(?<re>[^{}]*(?:{\g<re>[^{}]*}[^{}]*)*)}
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list