![]() |
#1
|
|||
|
|||
![]()
Hi all
I have a large amount of text which contains markdown for use in another application. For example, *S.austinii* is rendered in HTML in italics. I would like to use Find and Replace or similar in Word to convert *S.austinii* to S.austinii. There are hundreds of such entries, each of different length so I'll need to specify that the first asterisk marks the start and the second one the end of the italicised text but use a wild card for the text in between. Can I do this? Many thanks for any help Dave |
#2
|
|||
|
|||
![]()
You could try the following wild card Find/Replace.
Find What box: ( )(\*)([!\*]{1,})(\*)( ) Replace With box: \1\3\5 And don’t forget to associate the Replace With box with the Italic Font Format. |
#3
|
||||
|
||||
![]()
You could use a wildcard Find/Replace, where:
Find = \*(*)\* Replace = \1 and the replacement format is specified as italics.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
![]()
\*(*)\*
will find “* is rendered in HTML in italics. I would like to use Find and Replace or similar in Word to convert *” in the above text. For example. |
#5
|
||||
|
||||
![]()
Your point being? The expression I posted finds every instance the OP specified. Yours will not as it presupposes a space before and a space after (i.e. it makes no allowance for punctuation, paragraph breaks, etc. that might precede or follow the string of interest).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
find and replace, italics, wildcards |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I find paragraphs all in italics? | Robert2 | Word | 1 | 01-28-2014 02:54 PM |
![]() |
Aless | Word | 6 | 06-24-2013 08:32 AM |
![]() |
saclarkdoc | Word | 1 | 10-28-2011 03:56 PM |
How to retain italics when pasting from PDF? | WaltR | Word | 0 | 03-01-2011 04:01 PM |
Spellcheking, grammar and italics | Rosseiro | Word | 0 | 08-20-2010 10:07 PM |