![]() |
|
|
|
#1
|
||||
|
||||
|
If this is a search and replace activity, you don't NEED to exclude the correct word since you would be replacing it with itself.
Find: EVENING NEWS ???? WALTER Replace with: EVENING NEWS WITH WALTER To examine why the search you did isn't working. 1. [!WITH] will be looking for a single character other than those 4 letters. If you wanted a 4 digit word then you would need [!WITH]{4} 2. However that fix wouldn't work as expected because your search would exclude any four digit word that happens to contain any one of those letters. Since 'I' appears in BIFG it would be missed in the search. 3. It still wouldn't work if you got specific about the placement of excluded characters looked for [!W][!I][!T][!H] because if the second letter is I as per your example, that won't get found.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
||||
|
||||
|
The advantage of using * instead of ???? is that the OCR process may have created more or fewer than 4 characters instead of WITH. The disadvantage, is that is may make false matches (e.g. EVENING NEWS WITHOUT WALTER)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
| Tags |
| wildcard searches |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Replace characters in a string
|
Anthon | Excel Programming | 1 | 11-03-2016 12:48 AM |
| How to find all string within string. | PRA007 | Word VBA | 18 | 02-12-2016 08:11 PM |
Find Multiple Wildcard string and Highlight
|
PRA007 | Word VBA | 2 | 10-17-2015 01:07 AM |
Way to search for a string in text file, pull out everything until another string?
|
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
| Extract from String using Wildcard | whousedmy | Word | 0 | 05-21-2009 01:35 AM |