Getting parts of a string

i would like to get a part of a string, for example from a string that is 98237596,8912637591,1736517 i’d want to get 8912637591 how would i do this?

If all these numbers are separated by commas, you can use the string.split() function to return a table of all the strings between the commas. Then, you can loop through that table:

local text = "98237596,8912637591,1736517"
local split = string.split(text, ",")

for index, value in pairs(split) do

Here is a resource for more “string manipulating” techniques:

1 Like

i will try to use this now, thanks

1 Like