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