I saw this question and answer regarding closing img tags.
However, what if I want to close also other tags like link?
I tried to write
(<img|link[^>]+)(?<!/)>
But it wouldn't work
What is wrong?
Example:
<link href="myhref">
<img src="mysrc">
but not
<link href="myhref"/>
<img src="mysrc"/>