for t in io.stdin:lines()do print(t:gsub("^("..("%A*%a"):rep(16).."%A*)(%a)",function(a,b)return a..b:upper()end)or 0)end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page