I am trying to make an alias that places an r before every letter, for example:
typing 'ra' returns
ra
typing 'rabc' returns
ra
rb
rc
I know very little about scripting, but could inputting this function into a script potentially help me? I am in way over my head. =)
typing 'ra' returns
ra
typing 'rabc' returns
ra
rb
rc
I know very little about scripting, but could inputting this function into a script potentially help me? I am in way over my head. =)
Quote:
function string.insert(str1, str2, pos)
return str1:sub(1,pos)..str2..str1:sub(pos+1)
end
function string.insert(str1, str2, pos)
return str1:sub(1,pos)..str2..str1:sub(pos+1)
end