alias rainbow return $regsubex($1-,/(\S)/g,$chr(3) $+ $gettok(04.07.08.09.03.12.06,$calc((\n -1)%7+1),46) $+ \1)
Be that way Masoud:
alias rainbow return $regsubex($1-,/(?=\S)/g,$chr(3) $+ $gettok(04.07.08.09.03.12.06,$calc((\n -1)% 7+1),46))
This could also be shortened by replacing "$chr(3) " with the actual character, but hawkee/websites don't like displaying it.