in reply to Regex split string into n-length
Yet another way of doing it:
join '-', /\w{1,3}/g [download]