Find and Replace with Regex in Microsoft Word 2013
Search for \<i\>(*{1,})\</i\>
and replace with \1
. Don't forget to check Use wildcard
.
There is a reference table for Word's "regular expressions" here: http://office.microsoft.com/en-ca/word-help/find-and-replace-text-by-using-regular-expressions-advanced-HA102350661.aspx
<
and>
are special characters that need to be escaped*
means any character{1,}
means one or more times
To search for a character that's defined as a wildcard, place a backslash (\
) before that character. The *
itself matches any string of characters, so use the range quantifier to match (1
or more times)
Find: \<i\>(*{1,})\</i\>
Replace: \1