Find and Replace with Regex in Microsoft Word 2013

后端 未结 3 795
花落未央
花落未央 2020-12-31 02:12

I am editing an e-book document with a lot of unnecessary markup. I have a number of sections in the text with code similar to this:

Some text here&         


        
3条回答
  •  無奈伤痛
    2020-12-31 02:54

    Search for \(*{1,})\ 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

提交回复
热议问题