Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2022, 10:00 PM
hephalumph hephalumph is offline Wildcard find/replace wildcard question Windows 11 Wildcard find/replace wildcard question Office 2021
Novice
Wildcard find/replace wildcard question
 
Join Date: Feb 2022
Posts: 9
hephalumph is on a distinguished road
Default Wildcard find/replace wildcard question

I am trying to do a find/replace of every section heading that has improper formatting in a document. Most sections are;


Code:
Section 123: (section name)
But there are a LOT that leave out the colon and are instead;
Code:
Section 125 (section name)
My issue is in doing a wildcard find/replace, I tried;
Code:
Section [0-9][!:]
But in the above, it would detect 'Section 1' from the 'Section 123:'.

I then tried to modify it to;
Code:
Section [100-999][!:]
But I got the exact same results. How can I have it only look at 3 digit (or 2-digit, or 4-digit, or etc) numbers in a search?
Reply With Quote
  #2  
Old 03-12-2022, 12:54 AM
gmayor's Avatar
gmayor gmayor is offline Wildcard find/replace wildcard question Windows 10 Wildcard find/replace wildcard question Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Section [0-9]{1,}
See Replace using wildcards
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With Find and Replace Wildcard rsrasc Word VBA 9 10-13-2015 02:37 PM
Wildcard find/replace wildcard question New Find/Replace Wildcard Needed rsrasc Word VBA 2 11-11-2014 09:46 AM
Wildcard find/replace wildcard question Find/Replace Wildcard Needed rsrasc Word VBA 4 11-11-2014 08:28 AM
Wildcard find/replace wildcard question Wildcard Find and Replace Ulodesk Word 1 06-23-2014 10:26 AM
Wildcard find/replace wildcard question Need help using WildCard Find & Replace Cayce Word 1 06-09-2014 04:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:25 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