在 epub 代码中,我有这个文本:
<span>Capitulo 1 - Apple is red</span>
<span>Capitulo 2 - Milk is white</span>
<span>Capitulo 3 - Weeds are green</span>
我需要用“h1”标签替换“span”标签,用“chapter”替换“capitulo”的所有实例,保留其余的文本。我在口径上试过这个,没有运气:
Find: <span>Capitulo (/d+) * </span>
Replace: <h1>Chapter /1 * </h1>
我能做些什么?
第二个问题: 如果我有这个文本:
<span>Capitulo 1 - apple is red, 5 chicas</span>
<span>Capitulo 2 - milk is white, 6 chicas</span>
<span>Capitulo 3 - weeds are green, 7 chicas</span>
我想获得:
<h1>Chapter1 - apple is red, 5 girls</h1>
<h2>Chapter2 - milk is white, 6 boys</h2>
<h3>Chapter3 - weeds are green, 7 men</h3>
我应该如何进行?