Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2016, 02:34 AM
tinfanide tinfanide is offline Alternation & Grouping (Pipe) not working in Word 2010? Windows 7 64bit Alternation & Grouping (Pipe) not working in Word 2010? Office 2010 32bit
Expert
Alternation & Grouping (Pipe) not working in Word 2010?
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default Alternation & Grouping (Pipe) not working in Word 2010?

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.
Attached Files
File Type: docx alternation_grouping.docx (15.3 KB, 9 views)
Reply With Quote
  #2  
Old 07-29-2016, 03:36 AM
gmayor's Avatar
gmayor gmayor is offline Alternation & Grouping (Pipe) not working in Word 2010? Windows 10 Alternation & Grouping (Pipe) not working in Word 2010? Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #3  
Old 07-29-2016, 11:53 PM
tinfanide tinfanide is offline Alternation & Grouping (Pipe) not working in Word 2010? Windows 7 64bit Alternation & Grouping (Pipe) not working in Word 2010? Office 2010 32bit
Expert
Alternation & Grouping (Pipe) not working in Word 2010?
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Thanks for your reference.

It seems that in VBA both "|" and "()" are supported but not in Find what and Replace with.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternation & Grouping (Pipe) not working in Word 2010? MSP 2010 Outline code color allocation (grouping) not integrated Mojo99 Project 4 08-21-2015 01:17 PM
Alternation & Grouping (Pipe) not working in Word 2010? Grouping picture and shape in Word 2010 pban92 Drawing and Graphics 1 02-23-2015 05:09 PM
Alternation & Grouping (Pipe) not working in Word 2010? 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
Alternation & Grouping (Pipe) not working in Word 2010? Some Conversations Not Grouping in Outlook 2010 jetablack4 Outlook 2 07-05-2011 11:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft