How can I wrap my subtitles in MS Word with some predefined tags

可紊 提交于 2019-12-11 14:31:28

问题


I have a MS Word documents, with all the subtitle in a different format (font size and bold). I want to wrap the subtitles with a tag like {subtitle}My Subtitle{/subtitle}. What I have come up now is this:

  1. Ctrl +H
  2. More Options => enable wildcards
  3. Format => choosing the appropriate format of the subtitle.
  4. Find what: (*{1,}),
  5. Replace with {subtitle}\1{/subtitle}
  6. Replace All

The problem is the current regex wrap every single word with the {subtitle} tag. But not wrapping the whole subtitle with the tag. How can I solve this? Thanks.

来源:https://stackoverflow.com/questions/58572448/how-can-i-wrap-my-subtitles-in-ms-word-with-some-predefined-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!