title: Find and remove pattern of a string (Delphi)
body: <p>I have a big string ... Original text something like that:</p>
  
  <pre><code>'Lorem ipsum dolor sit amet, consectetur adipiscing  &lt;a href="hxxp://www.youtube.com/watch?v=VIDEO_1"&gt;hxxp://www.youtube.com/watch?v=VIDEO_1&lt;/a&gt;
  Sed lacinia purus turpis. Curabitur in nisi urna, vitae aliquet
  Vestibulum ante ipsum primis in faucibus orci luctus hxxp://www.youtube.com/watch?v=VIDEO_2&lt;/a&gt;'
  </code></pre>
  
  <p>If you notice there is a video (VIDEO_2) that has a closing &lt; /a> without opening &lt; a>
  Those problematic videos can be anywhere and any number inside the original text.</p>
  
  <p>I want to remove those unnecessary &lt; /a>
  How can I detect and delete those?</p>
  
  <p>I am on Delphi XE4.
  Any help please?</p>