Wildcard and placeholders
Sorry, wildcard searches are tricky. :-(
"Find what": (Section )([0-9]{1,})
"Replace with": Chapter \2
Note that {1, } is for English systems. If your list separator (in Control
Panel) is a semi-colon, use that instead.
This should match all occurrences of Section, followed by a space, followed
by a number with one digit or more, and the replacement is Chapter followed
by a space followed by the found number.
Remember to select "Use wildcards" in the Find and Replace dialog box.
Note that I'm assuming here that the text and the numbers were typed in. If
auto numbering has been used, the find and replace will fail.
--
Stefan Blom
Microsoft Word MVP
"AzmL" wrote in message
...
Hi Stefan,
Thank you for your help.
Unfortunately I still get the same bug.
I have also tried the following, just to try understanding what is going
on:
Find What: TXT ([0-9]{1,})
Replace with: helloword \1
Original text: TXT 156
Replaced text: hell156oword
Also, it does not pick up all the TXT ### instances (### are 3 digits)
All of this looks extremely random I am very confused.
--
AzmL
|