![]() |
#1
|
|||
|
|||
![]()
Hi.
Using find & replace & wildcards, I am trying to select text that comes after a colon so that I can format it bold. I am using the following: ( : )(^32)(*^13). This finds the colon and the text after the colon, but I only want the text after the colon to be selected. In the 'replace what' box I just want the text after the colon to be formatted bold. I've tried \1\2\3, but that bolds the colon and the text and if I just use \2\3 the colon disappears altogether. What am I doing wrong? Any help would be very much appreciated! Last edited by dcmontva; 06-19-2021 at 06:27 AM. |
#2
|
|||
|
|||
![]()
Try first replacing : with xmx: then use the second option then replace xmx with a colon.
|
#3
|
||||
|
||||
![]()
Formatting applied via Find Replace always applies to the entire found string.
FWIW, your Find/Replace expression could be reduced to (for example): Find = (: )(*^13) Replace = \1\2 Regardless, formatting the space after the colon as bold seems rather pointless. I would suggest two Find/Replace operations Find = : (*^13) Replace = §\1 replacement = bold Find = § Replace = :^32 replacement = not bold
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
![]()
Hi,
Thank you very much Charles & Paul for your help 👍. David |
![]() |
Tags |
find & replace, wildcards |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
scienceguy | Word VBA | 13 | 03-23-2019 03:27 AM |
![]() |
peterspiano | Word | 4 | 06-29-2015 05:13 AM |
![]() |
larsmula | Word | 2 | 02-20-2014 09:18 AM |
wildcards in find & replace to reverse word order | jeffk | Word | 3 | 11-11-2012 01:47 PM |
![]() |
tinfanide | Word | 2 | 09-10-2011 10:40 AM |