Friday, 15 January 2010

string - Find and Replace with Regex in Microsoft Word 2013 -



string - Find and Replace with Regex in Microsoft Word 2013 -

i editing e-book document lot of unnecessary markup. have number of sections in text code similar this:

<i>some text here</i>

i trying run regex find , replace find phrase between 2 i-tags, remove i-tags, , apply style text.

here i'm using search:

find: (<i>)(*)(</i>) replace: \2

i'm selecting styles > (for italic). tells our conversion software apply italics text. if leave i-tags, ends happening scribenet's conversion process converts them hex-values show literal text in e-book. messy.

when run search, no results. have "use wildcards" checked. missing? according microsoft's help website, * used represent number or type of characters, , individual strings supposed enclosed in parentheses.

to search character that's defined wildcard, place backslash (\) before character. * matches string of characters, utilize range quantifier match (1 or more times)

find: \<i\>(*{1,})\</i\> replace: \1

regex string replace ms-word

No comments:

Post a Comment