search replace for paragraphs that include a footnote

Everything related to our flagship word processor.
Post Reply
erico
Posts: 1
Joined: 2014-10-16 13:58:10

search replace for paragraphs that include a footnote

Post by erico »

Hello,
I'm importing a huge document that has tons of block citations that I'd like to quickly format into their proper style. They will always look like

texttexttextCOLON LINEEND
text text text text FOOTNOTE LINEEND
texttexttext

I am trying to do a search and replace
:\n(?:.|\n|\f)+$

but nisus does not find any paragraphs that have a footnote reference in them. :-(

Is there a way around this?

Thanks !
Eric
User avatar
phspaelti
Posts: 1349
Joined: 2007-02-07 00:58:12
Location: Japan

Re: search replace for paragraphs that include a footnote

Post by phspaelti »

Wow! It shows how little I use footnotes. I had never noticed this before. :o

Anyhow I am not sure if this is exactly what you want, but the following macro will select paragraphs that end with a footnote and have a colon at the end of the paragraph before (or did you want that paragraph selected as well?)
Attachments
Find Colon Footnote paras.nwm
(4.83 KiB) Downloaded 191 times
philip
Post Reply