Hi, I want to remove all the opening and closing tags: <italic>, </italic>, <bold> and </bold> from inside of every <caption><p>...</p></caption> and <caption><title>...</title></caption> in the file, i.e. the contents inside <caption><p>...</p></caption> and <caption><title>...</title></caption> must not contain any opening or closing tags of <italic> and <bold>.
Sample file:
Desired output:
Can this be done using a regex find and replace all? How?
Sample file:
Code: Select all
<p>Note, the ability for <italic>a plane wave</italic> to transfer angular momentum to matter is sometimes considered as 'paradoxi-cal'</p>
<p>The paper is organized as follows.
<fig id="d1">
<caption><p>What does <italic>in vito</italic> mean?</p></caption>
<graphic xlink:href="00057_fig_page_1_3.jpg"/>
</fig>
</p>
<p>The presence of the momentum of a wave results in radiation pressure on a particle.</p>
<table id="t1">
<label>Table 1.</label>
<caption><title>Notations <bold>for the</bold> statement <italic>of</italic> problem.</title></caption>
<graphic xlink:href="00057_table_page_2_2.jpg"/>
</table>
<p>Proceeding from the conservation law for the system ‘<bold>radiation-particle</bold>’, one obtains:</p>
<p>Let us designate the result of integration as
<fig id="f2">
<caption><p>Momentum And Angular Momentum Of Plane Electromagnetic Wave</p></caption>
<graphic xlink:href="00057_fig_page_7_1.jpg"/>
</fig>
</p>
Code: Select all
<p>Note, the ability for <italic>a plane wave</italic> to transfer angular momentum to matter is sometimes considered as 'paradoxi-cal'</p>
<p>The paper is organized as follows.
<fig id="d1">
<caption><p>What does in vito mean?</p></caption>
<graphic xlink:href="00057_fig_page_1_3.jpg"/>
</fig>
</p>
<p>The presence of the momentum of a wave results in radiation pressure on a particle.</p>
<table id="t1">
<label>Table 1.</label>
<caption><title>Notations for the statement of problem.</title></caption>
<graphic xlink:href="00057_table_page_2_2.jpg"/>
</table>
<p>Proceeding from the conservation law for the system ‘<bold>radiation-particle</bold>’, one obtains:</p>
<p>Let us designate the result of integration as
<fig id="f2">
<caption><p>Momentum And Angular Momentum Of Plane Electromagnetic Wave</p></caption>
<graphic xlink:href="00057_fig_page_7_1.jpg"/>
</fig>
</p>