Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2015, 10:59 AM
mysterytramp mysterytramp is offline Difficult search Windows 7 64bit Difficult search Office 2010 64bit
Novice
Difficult search
 
Join Date: May 2015
Posts: 8
mysterytramp is on a distinguished road
Default Difficult search


I need to find each instance when a specific word (actually an acronym) is not preceded by "the" (or "The").

Any way to do this?

mt
Reply With Quote
  #2  
Old 05-28-2015, 06:28 PM
Mandy11 Mandy11 is offline Difficult search Windows 7 64bit Difficult search Office 2003
Novice
 
Join Date: May 2015
Posts: 18
Mandy11 is on a distinguished road
Default

Will Edit Find work?
Reply With Quote
  #3  
Old 05-29-2015, 01:24 AM
Robert2 Robert2 is offline Difficult search Windows 8 Difficult search Office 2007
Competent Performer
 
Join Date: Jun 2013
Posts: 165
Robert2 will become famous soon enoughRobert2 will become famous soon enough
Default

To be able to do this through Find/Replace, Word would need to have support for regex “negative lookbehind” (to be able to assert that what immediately precedes the current position in the string is not the exclusion text). Word has no such support.

Still, you might get by with the following wildcard search.

Find What: [!e]^32ACRONYM
Reply With Quote
  #4  
Old 05-31-2015, 10:55 PM
eNGiNe eNGiNe is offline Difficult search Windows 7 32bit Difficult search Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Macro to add index markers for all occurrences of {single word} {acronym}? Way outside my skill set, but just a thought … you could then scan the index by eye, or perhaps even sort the results in an editor; at least you'd have an overview. A twin macro to remove the index markers once you've finished would probably be handy, too.
Reply With Quote
  #5  
Old 06-05-2015, 11:13 AM
mysterytramp mysterytramp is offline Difficult search Windows 7 64bit Difficult search Office 2010 64bit
Novice
Difficult search
 
Join Date: May 2015
Posts: 8
mysterytramp is on a distinguished road
Default

Quote:
Originally Posted by Robert2 View Post
To be able to do this through Find/Replace, Word would need to have support for regex “negative lookbehind” (to be able to assert that what immediately precedes the current position in the string is not the exclusion text). Word has no such support.

Still, you might get by with the following wildcard search.

Find What: [!e]^32ACRONYM
Thanks. This handled it fairly well.
Reply With Quote
Reply

Tags
find and replace, searching, wildcards



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficult search Difficult data presentation issue Khal_Drogo8 Excel 1 12-05-2014 06:38 AM
Difficult Graph To Plot..Please help Jago147 Excel 0 02-18-2014 02:30 PM
Simple Signature -- Frustratingly Difficult (Outlook 2003) DMeer Outlook 2 11-01-2013 06:30 AM
Difficult search Simple Question, difficult task... Jshopping Word 4 01-19-2011 03:04 PM
Word 2007 Building Blocks - difficult to update... Ian Hunneybell Word 0 10-19-2009 06:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:21 PM.


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