Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2018, 07:35 AM
johnh johnh is offline Search and replace -- missing space before an open paren symbol Windows 7 64bit Search and replace -- missing space before an open paren symbol Office 2007
Novice
Search and replace -- missing space before an open paren symbol
 
Join Date: Oct 2012
Posts: 5
johnh is on a distinguished road
Default Search and replace -- missing space before an open paren symbol

My students' native language doesn't precede a parenthesis mark ( with a space in text. To ease working on their English writing papers, I would like to find a way of bulk repairing the problem.



In short, I want to insert a space before every instance of an open parentheses mark that is not preceded by a space. The rambling below is what I've tried unsuccessfully.

The "find" part is OK, I think. I click on "use wildcards" and put [! ]\( in the box. It finds a character other than a space followed by an open paren mark (escaped with the backslash). Seems to work correctly. Then the fun begins.

I can't replace that with a space and open paren mark only, or it would delete the letter originally in front of the (. I thought I could put the first part of the find expression in parens -- ([! ])\( -- and then use -- \1 \( -- for the replacement. Error message in find. I tried -- ([! ])(\() --. That didn't work either, which is too bad because I could then have used -- \1 \2 -- for the replace. But adding any grouping crashes the find function.

No sense boring you with the other permutations I've tried. Can anyone set me straight?

Thanks.
Reply With Quote
  #2  
Old 05-26-2018, 08:01 PM
gmayor's Avatar
gmayor gmayor is offline Search and replace -- missing space before an open paren symbol Windows 10 Search and replace -- missing space before an open paren symbol Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
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

Find
([! ])([\(])
Replace with
\1 \2
with the wildcard option set
__________________
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get rid of space after degree symbol ChrisBE PowerPoint 2 11-29-2017 06:01 AM
Search and replace -- missing space before an open paren symbol Find and Replace with space cheech1981 Word 3 03-29-2017 02:33 PM
Search and replace -- missing space before an open paren symbol Replace checkbox symbol with check box content control canadansk Word VBA 5 04-01-2015 08:21 AM
Search and replace -- missing space before an open paren symbol how to find and replace a symbol with another symbol wondermuse Word 5 10-09-2014 06:30 AM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:54 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