1 | local num = 1923919 |
2 | local FaceID = "http://rproxy.pw/Orange-Sparkle-Time-Fedora-item?id=215751161" |
3 | local sub = string.sub(FaceID, 18 ) |
4 | local rev = string.reverse(sub) |
5 | local ot = string.sub(rev, string.len(num) + 12 ) |
This script prints Orange-Sparkle-Time-Fedora like its supposed to. But what I need to do is replace the hyphens with spaces, but how would I do that?
String.gsub replaces any letter/number with another letter/number
so it'd b lik dis cuti patooti
1 | FaceID = string.gsub(FaceID, "-" , " " ) |
There's the string.gsub function, which replaces things with other things.
1 | ot = ot:gsub( "-" , " " ) --Replace hyphen with space |