Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-01-2015, 05:02 AM
loes loes is offline regular expressions in footnotes Windows 8 regular expressions in footnotes Office 2013
Novice
regular expressions in footnotes
 
Join Date: Apr 2015
Posts: 1
loes is on a distinguished road
Default regular expressions in footnotes


I have two long documents, with many footnotes, that need to be formatted. Both documents present a different problem in the footnotes, which I would like to solve using a regular expression.

1. Punctuation sign (full stop) missing at the end of a footnote.
I use the following regular expression:
find (search all footnotes that do not end with a punctuation sign), use wildcards activated: ([!.\?\!])(^13)(^2)
replace (add full stop at the end of footnotes not ending with a punctuation sign): \1.\2\3
The regular expression finds the footnotes that should be corrected without any problems, but does not do anything when pressing 'replace', nor 'replace all'.

2. Footnotes separated by a white line, i.e. additional hard return.
I use the following regular expression:
find (search all footnotes that are separated from the next one by an additional hard return), use wildcards activated: (^13)(^13)(^2)
replace (remove one of both hard returns): \2\3
The regular expression, again, finds the footnotes that should be corrected without any problems, but does not do anything when pressing 'replace', nor 'replace all'.

I have the impression the paragraph mark is blocking both regular expressions (looks like Word is thinking I am replacing the paragraph mark at the end of the footnote, which is not allowed). Can anyone confirm this idea and offer some help how to solve it?

Thanks in advance!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
regular expressions in footnotes Regular expressions for text with complex formatting Kreol2013 Word VBA 1 04-12-2013 07:33 PM
regular expressions in footnotes Regular Expressions: match words within quotes? tinfanide Word VBA 3 02-02-2013 10:07 PM
regular expressions for empty lines eNGiNe Word 1 01-21-2013 06:38 AM
regular expressions in footnotes Regular expressions: lower case after hyphen SusanG Word 2 06-06-2012 11:58 PM
regular expressions in footnotes Regular Expressions: [!0-9] does not work??? tinfanide Excel Programming 4 05-30-2012 04:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft