I have a big string ... Original text something like that:
'Lorem ipsum dolor sit amet, consectetur adipiscing <a href="hxxp://www.youtube.com/watch?v=VIDEO_1">hxxp://www.youtube.com/watch?v=VIDEO_1</a>
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</a>'
If you notice there is a video (VIDEO_2) that has a closing < /a> without opening < a> Those problematic videos can be anywhere and any number inside the original text.
I want to remove those unnecessary < /a> How can I detect and delete those?
I am on Delphi XE4. Any help please?