How can I search for the word "Box" within the html code below:
<p>Text here ok</p>
<h4>
Box 1.2</h4>
<p>Text here ok</p>
and have the output as follows?
<p>Text here ok</p>
<h4><a name="box1.2"></a>Box 1.2</h4>
<p>Text here ok</p>
Note the line break between <h4> and Box needs to be removed. The other thing is I will have "Box 2.0", "Box 2.3", etc. so only the word "Box" has the matching pattern.
<h4>tag or it can be inside other HTML tags as well (like div, p, span etc)?