SOLVED

Automatic insertion of `dot` at the end of footnotes.

%3CLINGO-SUB%20id%3D%22lingo-sub-2974211%22%20slang%3D%22en-US%22%3EAutomatic%20insertion%20of%20%60dot%60%20at%20the%20end%20of%20footnotes.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2974211%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22%22%3EHello%20everybody%2C%3C%2FP%3E%3CP%3EI%20have%20to%20mention%20that%20I%20have%20no%20experience%20with%20programming.%3C%2FP%3E%3CP%3EI%20have%20a%20very%20large%20document%2C%20with%20many%20footnotes.%3C%2FP%3E%3CP%3EI%20would%20like%20these%20footnotes%20to%20end%20with%20%22.%22.%20Is%20there%20a%20find-and-replace%20expression%20that%20can%20help%20me%20to%20do%20that%20automatically%3F%3C%2FP%3E%3CP%3EI%20tried%20this%20expression%20%3CEM%3Efind%3A%20(%5BA-z%5D%20%5B0-9%5D)%20(%5E%2013)%20and%20replace%20%5C%201.%20%5C%202%20%3C%2FEM%3Ebut%20it%20doesn't%20work.%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2978820%22%20slang%3D%22en-US%22%3ERe%3A%20Automatic%20insertion%20of%20%60dot%60%20at%20the%20end%20of%20footnotes.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2978820%22%20slang%3D%22en-US%22%3EHello%20Bogdan1609.%20I%20think%20there%20is%20an%20easier%20way%2C%20assuming%20your%20footnote%20paragraphs%20have%20their%20own%20named%20style%20distinct%20from%20the%20text%20in%20the%20main%20page%20body.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20would%20use%20the%20Advanced%20Find%20and%20Replace%20dialog%2C%20which%20on%20a%20Mac%20is%20available%20on%20the%20menu%20under%20Edit%20%26gt%3B%20Find%20%26gt%3B%20Advanced%20Find%20and%20Replace%2C%20and%20on%20a%20Windows%20device%2C%20on%20the%20Home%20ribbon%20at%20very%20far%20right%20(click%20Replace%2C%20and%20in%20the%20Find%20and%20Replace%20dialog%2C%20click%20the%20More%20button%20to%20expand%20the%20dialog.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20expanded%20portion%20of%20the%20dialog%2C%20select%20the%20Format%20button%20drop-down%20and%20select%20Style.%20Specify%20the%20style%20you%20use%20for%20your%20footnotes.%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20click%20the%20Special%20button%20drop-down%2C%20and%20select%20Paragraph%20Mark.%20That%20is%20what%20you%20want%20in%20the%20Find%20box.%20It%20will%20look%20like%20%5Ep%20in%20the%20text%20box.%20Put%20the%20same%20thing%20in%20the%20Replace%20with%20text%20box%2C%20except%20with%20a%20period%20in%20front%20of%20it%3A%20.%5Ep%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20should%20be%20able%20to%20step%20through%20your%20footnotes%20using%20Find%20Next%2C%20and%20then%20clicking%20the%20Replace%20button%20when%20the%20search%20finds%20a%20paragraph%20mark%20not%20preceded%20by%20a%20period.%20Or%2C%20if%20you%20want%20to%20be%20really%20fast%2C%20you%20could%20just%20say%20replace%20all.%20Then%2C%20to%20clean%20up%20the%20cases%20where%20there%20was%20already%20a%20period%2C%20which%20now%20will%20be%20two%20periods%2C%20you%20can%20just%20find%20and%20replace%20on%20..%5Ep%20(two%20periods%20and%20the%20paragraph%20representation)%20with%20.%5Ep%20(one%20period%20and%20the%20paragraph%20representation.%3CBR%20%2F%3E%3CBR%20%2F%3EBecause%20you%20matched%20on%20a%20style%2C%20you%20will%20not%20have%20to%20tediously%20step%20through%20all%20paragraphs%20in%20your%20document.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20hope%20this%20proves%20helpful.%3CBR%20%2F%3E%3CBR%20%2F%3EDeebs%3C%2FLINGO-BODY%3E
New Contributor

Hello everybody,

I have to mention that I have no experience with programming.

I have a very large document, with many footnotes.

I would like these footnotes to end with ".". Is there a find-and-replace expression that can help me to do that automatically?

I tried this expression find: ([A-z] [0-9]) (^ 13) and replace \ 1. \ 2 but it doesn't work.

Thank you!

2 Replies
best response confirmed by Bogdan1609 (New Contributor)
Solution
Hello Bogdan1609. I think there is an easier way, assuming your footnote paragraphs have their own named style distinct from the text in the main page body.

You would use the Advanced Find and Replace dialog, which on a Mac is available on the menu under Edit > Find > Advanced Find and Replace, and on a Windows device, on the Home ribbon at very far right (click Replace, and in the Find and Replace dialog, click the More button to expand the dialog.

In the expanded portion of the dialog, select the Format button drop-down and select Style. Specify the style you use for your footnotes.

Then click the Special button drop-down, and select Paragraph Mark. That is what you want in the Find box. It will look like ^p in the text box. Put the same thing in the Replace with text box, except with a period in front of it: .^p

You should be able to step through your footnotes using Find Next, and then clicking the Replace button when the search finds a paragraph mark not preceded by a period. Or, if you want to be really fast, you could just say replace all. Then, to clean up the cases where there was already a period, which now will be two periods, you can just find and replace on ..^p (two periods and the paragraph representation) with .^p (one period and the paragraph representation.

Because you matched on a style, you will not have to tediously step through all paragraphs in your document.

I hope this proves helpful.

Deebs
Thank you, is working!