|
| 10 Jul 2014 07:12 PM |
How would I go about getting anything before a comma in a string? Like for example:
local txt1 = "Hello, world" local txt2 = "Hello world, I'm here!" customStringManipulation(txt1) customStringManipulation(txt2)
Output: Hello Hello world
Obviously customStringManipulation being a custom function, but how would I go about doing this? I'm terrible with string patterns and I already tried something with string.sub, but only works for certains length of characters. Any help is greatly appreciated!
|
|
|
| Report Abuse |
|
| |
| |