Deleting specific rows with a pattern[start and end indicators] from a dataframe : <p><a href="https://i.stack.imgur.com/LxBbp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LxBbp.png" alt="Sample Dataset"></a></p>

<p>I want to remove all rows between "5. Demand Disputed" and "Total Demand Disputed" from their respective columns. I have tried </p>

<pre><code> grepl
 gsub 
</code></pre>

<p>but not able to achieve the desire output.Kindly guide. </p>
