of     1   

doggyjoe9
#184952456Monday, March 07, 2016 11:38 PM GMT

Is there some sort of string pattern I can use to find, say, the 7th letter in a string?
doggyjoe9
#184952538Monday, March 07, 2016 11:39 PM GMT

And replace it*
eLunate
#184953404Monday, March 07, 2016 11:52 PM GMT

TargetString:sub(7,7) -> 7th letter
doggyjoe9
#184955957Tuesday, March 08, 2016 12:29 AM GMT

But how would I REPLACE the seventh letter of the string?
TheScripterGeek
#184956877Tuesday, March 08, 2016 12:41 AM GMT

string = string:sub(7,7)
benthanh123
#184960413Tuesday, March 08, 2016 1:32 AM GMT

string.gsub(strings, "(%w%w%w%w%w%w)(%w)(%w*)", "%1[[change here]]%3")--remove [[]]
cntkillme
#184964240Tuesday, March 08, 2016 2:28 AM GMT

......(.), blah It's still gross, I'd probably use string.sub twice and concatenate them all together.
Froast
#184964370Tuesday, March 08, 2016 2:30 AM GMT

ROBLOX's filter doing great as usual and blocked my post so I've put it here: pastebin.com/u8haB4P
eLunate
#184991368Tuesday, March 08, 2016 7:28 PM GMT

Technically, it's more like function replace(s,n,r) return s:gsub("("..string.rep('.',n-1)..").","%1"..r); end

    of     1