Forum Discussion
MS Word: Find&Replace back reference is messed up
0_Hichiko_0 Just use an ordinary (non wildcard) replace and put a colon in the Find what control and a colon followed by a space in the Replace with control
If you aready have some colons followed by a space and don't want two spaces after a colon, them do another Find and Replace with a colon followed by two spaces in the Find what control and the colon followed by one space in the Replace with control.
- 0_Hichiko_0May 02, 2023Copper Contributor
Hi Doug,
I hope this finds you well. 😄
I ended up doing something like you suggested.
However, the issue persists in other examples as well. I need to use regex on a daily basis and this bug is really precluding me from working with MS Word, my favorite tool.
Is there a way to properly report this?
Best,
Hichiko
- May 02, 2023
0_Hichiko_0 Why do you want to use Regex? I never use it and when necessary, use a Wildcard replace.
Give us some examples that do not work for you.
- 0_Hichiko_0May 03, 2023Copper ContributorHi Doug,
Well, I mentioned regex because it shares some similarities with wildcards. I actually use both.
However, the bug is tied with back referencing while replacing.
Whatever strategy I use to find text (making groups with brackets) and replace it back referencing with "\n" (where "n" is the respective group), it will behave like described in my first message (it shouldn't behave like that).
I work with review of documents, and I often need to replace things in documents that can have more than 50 pages. I usually manage to find a workaround or use other tools (on a case by case basis). However, the bug is still there and hasn't been fixed in many months.