note
samwyse
I like to "correctly" handle the case where there may already be colons in the string.
<code>
perl -E"$_=lc'02468ACE';s/[^:]{2}(?=[^:])\K/:/g;say"
02:46:8a:ce
perl -E"$_=lc'02:46:8A:CE';s/[^:]{2}(?=[^:])\K/:/g;say"
02:46:8a:ce
</code>
944083
944097