#1
|
|||
|
|||
Wildcard Find/Replace deletes extra character
I'm trying to do a Find/Replace with a wildcard to find text which doesn't have a certain character (in this case a circle-R) following it. This will eventually be done through a VBA script, but I am having issues doing it manually as well.
The search string I am using is "XXXXXXX[!®]", and the replacement string is "XXXXXXX®". The problem I am having is that it is replacing the next character after the search string (usually either a space or a period), so that if it found "XXXXXXX is a..." I get "XXXXXXX®is a..." and "XXXXXXX. The..." becomes XXXXXXX® The..." |
#2
|
|||
|
|||
I figured this out. I replaced my search pattern with:
"(XXXXXXX)([!®])" and my replacement pattern with: "\1®\2" My mistake was I was reading the search as 'XXXXXX not followed by a ®", where it was really "'XXXXXX followed by any character except ®", and that character was part of the found string. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help using WildCard Find & Replace | Cayce | Word | 1 | 06-09-2014 04:17 PM |
Change characters outside a wildcard while keeping wildcard results | nymusicman | Word VBA | 2 | 04-10-2014 08:17 AM |
Help with the "find and replace" option; character problem | martinn4 | Word | 3 | 02-20-2014 03:52 AM |
How to replace this word file using wildcard | zhangzujin361 | Word | 1 | 01-18-2014 08:02 PM |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |