|
| 20 Oct 2012 06:47 AM |
| How would I find "str" from the string "string" ? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 Oct 2012 06:55 AM |
| ("string"):find("str") returns start and end position, nil if it doesn't match |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2012 06:57 AM |
local s,e = ("string"):find("str") print(("string"):sub(s,e)) |
|
|
| Report Abuse |
|
|