Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2015, 01:54 PM
kilbey252 kilbey252 is offline Convert markdown to italics in Word Windows 7 64bit Convert markdown to italics in Word Office 2013
Novice
Convert markdown to italics in Word
 
Join Date: Feb 2015
Posts: 5
kilbey252 is on a distinguished road
Default Convert markdown to italics in Word

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
Reply With Quote
  #2  
Old 02-19-2015, 04:52 PM
Robert2 Robert2 is offline Convert markdown to italics in Word Windows 8 Convert markdown to italics in Word Office 2007
Competent Performer
 
Join Date: Jun 2013
Posts: 175
Robert2 will become famous soon enoughRobert2 will become famous soon enough
Default

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.
Reply With Quote
  #3  
Old 02-19-2015, 10:50 PM
macropod's Avatar
macropod macropod is offline Convert markdown to italics in Word Windows 7 64bit Convert markdown to italics in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #4  
Old 02-19-2015, 11:44 PM
Robert2 Robert2 is offline Convert markdown to italics in Word Windows 8 Convert markdown to italics in Word Office 2007
Competent Performer
 
Join Date: Jun 2013
Posts: 175
Robert2 will become famous soon enoughRobert2 will become famous soon enough
Default

\*(*)\*
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.
Reply With Quote
  #5  
Old 02-20-2015, 12:02 AM
macropod's Avatar
macropod macropod is offline Convert markdown to italics in Word Windows 7 64bit Convert markdown to italics in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

Tags
find and replace, italics, wildcards



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find paragraphs all in italics? Robert2 Word 1 01-28-2014 02:54 PM
Convert markdown to italics in Word How to make a word italics throughout document Aless Word 6 06-24-2013 08:32 AM
Convert markdown to italics in Word Italics and Fonts Mysteriously Vanish When a Word 2003 Document is Saved 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

Other Forums: Access Forums

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