I was thinking along the same lines too, but I had a different approach to it, which saved me three characters.
46 (but changes too much)s/(?<=<!--)(.+?)(?=-->)/($_=$1);s|-|¬|g;$_/seg
In reply to Re^2: Golf: Fix de facto HTML comments
by Chady
in thread Golf: Fix de facto HTML comments
by tye
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |