On 15/12/2008 20:28, Mitchel Cohen wrote:
Hi,

In an essay I wrote, I have all phrases I want to appear as italics between two codes. For example, <MI>words to appear in italic<D> . The words to be italicized are different throughout the essay.

How do I do a Search and Replace for different strings of words, but all of them between <MI> and <D> ?

Thanx.

Mitchel

In Find & Replace:
* click More Options
* tick (check) Regular Expressions
* In the Find box enter "<MI>.*<D>" without the quotes. That middle bit is period asterisk and means "any number of any character"
* click Find All
All the occurrences of text beginning with <M1> and ending with <D> will be highlighted.
* click the Italic button on the toolbar
Done.

Note that this will *not* find text that starts with <M1> and ends with <D> *on a subsequent line*. If any of the text to be italicised spans lines then, sorry, I don't know how to do that. Not even sure you can.

--
Harold Fuchs
London, England
Please reply *only* to [email protected]

Reply via email to