I had a problem and found the solution on the internet. Worked like a breeze.
Regex to match the first ending HTMl tag:
But I find it difficult to understand the script.
Could someone please explain to me what the code means and especially the code: