I'm having the hardest time finding a way to match and remove the text I've been asked to remove.
I can't just match the exact string because it's different every time, but it's always between the same known chars.
<h1 class="art-PostHeader" style="border-bottom:solid 1px; border-bottom-color:#4D909D;"><a href="/content/library-closed-14" title="Library Closed">Building Closed</a></h1>
Code to Remove <form action=
So, while the "Content to be removed" can be anything alpha or numeric, it will always be between </h1>
and <form
There should be a way to write a jQuery remove()
or replace()
function to match it, but I can't figure it out. I've tried regular expressions but I'm not the best at those.