On Fri, Aug 29, 2008 at 9:43 AM, Sam Seaver <samseaver@xxxxxxxxx> wrote: > I was just thinking that in emacs, you can use Meta-Shift-5, and > simply replace "<a" with "<footref" and then by pressing 'y' or 'n', > you can replace all the ones you want to. The same can simply be done > with "</a>" and "</footref>". The trick is that not all "a" tags are footnote references. Since we're talking about it, this is the Emacs-speak regular expression I've used in the past if I remember correctly: <a\([^>]*\) class="footnote"([^>]*)/> Which is replaced by: <footref\1\2/> I think I've already fixed all of the XML books that had non-empty footnote "a" tags which this expression wouldn't handle. Anyway... -- Jon ~~~~~~ Manage your subscription at http://www.freelists.org/list/projectaon