![]() |
|
|
|
#1
|
|||
|
|||
|
Please see the attachment for the question or see below:
******************************************* animals cat dog mouse fish (15-16) animals dog cat mouse fish (15-16) Find what: (cat)|(dog) Replace with: \2 \1 ******************************************* Blue is the original and red is the expected. The Find What returns that nothing is found. |
|
#2
|
||||
|
||||
|
See http://www.gmayor.com/replace_using_wildcards.htm
There is no pipe in the string so searching for one is not going to find it. Search instead for (cat) (dog) Replace with \2 \1
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#3
|
|||
|
|||
|
Thanks for your reference.
It seems that in VBA both "|" and "()" are supported but not in Find what and Replace with. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
MSP 2010 Outline code color allocation (grouping) not integrated
|
Mojo99 | Project | 4 | 08-21-2015 01:17 PM |
Grouping picture and shape in Word 2010
|
pban92 | Drawing and Graphics | 1 | 02-23-2015 05:09 PM |
Pivot table grouping problem 2 tables need different grouping
|
differentdrummer | Excel | 3 | 12-10-2013 01:19 AM |
| Word 2010 - Specify working area | Toni Chaffin | Word | 1 | 09-14-2012 02:46 AM |
Some Conversations Not Grouping in Outlook 2010
|
jetablack4 | Outlook | 2 | 07-05-2011 11:03 PM |