View Single Post
 
Old 03-11-2022, 10:00 PM
hephalumph hephalumph is offline Windows 11 Office 2021
Novice
 
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