![]() |
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
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 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Get rid of space after degree symbol | ChrisBE | PowerPoint | 2 | 11-29-2017 06:01 AM |
![]() |
cheech1981 | Word | 3 | 03-29-2017 02:33 PM |
![]() |
canadansk | Word VBA | 5 | 04-01-2015 08:21 AM |
![]() |
wondermuse | Word | 5 | 10-09-2014 06:30 AM |
Search and Replace - Clear Search box | JostClan | Word | 1 | 05-04-2010 08:46 PM |