问题
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:
- Ctrl +H
- More Options => enable wildcards
- Format => choosing the appropriate format of the subtitle.
- Find what:
(*{1,})
, - Replace with
{subtitle}\1{/subtitle}
- 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