|
| 17 Oct 2016 06:19 AM |
How would i find multiple strings and not use gsub but account for each one? like string.find or what?
|
|
|
| Report Abuse |
|
|
Naco88
|
  |
| Joined: 30 Oct 2009 |
| Total Posts: 665 |
|
|
| 17 Oct 2016 06:21 AM |
| Find multiple strings in what? |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2016 06:41 AM |
in a msg... like "test:test2:hi::"
and it would find the test:___: and test2:hi:
|
|
|
| Report Abuse |
|
|
|
| 17 Oct 2016 06:48 AM |
its called using string patterns
local cs = ":kill noob | :test 20 hi" for i in cs:gmatch("[^%|]+") do print(i) for x in i:gmatch("%S+") do print(x) end end |
|
|
| Report Abuse |
|
|