Help for this page
>perl -lne "$l=1;while (/([-.]*([\w])\2*[-.]*(\2+[-.]*)*)/g){ print sp +rintf '%d-%d:s',$l,pos,$2;$l=pos()+1}"
XXX---YYY