Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 05-06-2018, 04:23 PM
Guessed's Avatar
Guessed Guessed is offline Wildcard replace any string in context with a specified string Windows 10 Wildcard replace any string in context with a specified string Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,184
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
 

Tags
wildcard searches

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wildcard replace any string in context with a specified string 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
Wildcard replace any string in context with a specified string Find Multiple Wildcard string and Highlight PRA007 Word VBA 2 10-17-2015 01:07 AM
Wildcard replace any string in context with a specified string 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:34 AM.


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