>     string.gsub!(/./,'\&|') 


cool :-) but it could be even shorter:

     string.gsub! //,'\0|'

:-)))

(one leading '|' in output more)

-- 
Szy