<h2>Title
<h3>Source text1</h3>
<h4><a href="[qwerty]</a></h4>
<h3>Source text2</h3>
<h4><a href="[qwerty]</a></h4>
<h2>...
<h3>...
<h4>...
<h2>...
<h3>...
...
Trying to insert "Source text" (always is between <h3></h3> tags in "[qwerty]" (target to replace is always [qwerty] with brackets) and delete line that contain source text. Line containig "[qwerty]" is always the next to line containig "Source text". So desired ouput:
<h2>Title
<h4><a href=" text1</a></h4>
<h4><a href=" text2</a></h4>
<h2>Title
<h4>...
<h2>Title
...
I am so newbie to do this for now...
<h3>Source text1</h3>
<h4><a href="[qwerty]</a></h4>
<h3>Source text2</h3>
<h4><a href="[qwerty]</a></h4>
<h2>...
<h3>...
<h4>...
<h2>...
<h3>...
...
Trying to insert "Source text" (always is between <h3></h3> tags in "[qwerty]" (target to replace is always [qwerty] with brackets) and delete line that contain source text. Line containig "[qwerty]" is always the next to line containig "Source text". So desired ouput:
<h2>Title
<h4><a href=" text1</a></h4>
<h4><a href=" text2</a></h4>
<h2>Title
<h4>...
<h2>Title
...
I am so newbie to do this for now...