UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> "end Of File" -- Regular Expression, Office 2007    
 
   
hwk716
post Aug 25 2017, 04:15 PM
Post#1



Posts: 44
Joined: 27-July 08
From: MN


Greetings,

This is (I hope) a simple question.

I am working with several files in Word 2007 with consistent entries that appear at the very end of each file. I do not need these concluding entries for my purposes.

I would like to eliminate them with a regular expression that searches for a keyword (e.g., "cat") that consistently starts the string, and then deletes both the keyword and everything that follows this keyword to the end of the file.

What is the regular expression for "End of File" in a Word document? I am unable to find this in searching the web.

Thanks and regards,

q.
Go to the top of the page
 
GroverParkGeorge
post Aug 26 2017, 05:59 PM
Post#2


UA Admin
Posts: 30,469
Joined: 20-June 02
From: Newcastle, WA


How about this?

Record a macro in Word in which you use the hot keys available to go to the end of the document, then search back up for the phrase you want.

--------------------
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    24th September 2017 - 08:58 AM