string.gsub("121113", "1", "1") returns when printing a second value. How do i get that second value?
print(string.gsub("12113", "1", "1"))
returns:
121113 3
how do i get that last "3" ?
what i tryed:
local Number = string.gsub("12113", "1", "1") print(string.gsub(Number,"12113", ""))
local string, matches = string.gsub("12113","1","1") print(string) print(matches)
Output:
12113 3