s3vvy
|
  |
| Joined: 24 Feb 2011 |
| Total Posts: 983 |
|
|
| 16 Mar 2017 06:51 PM |
I want to select the letters in a string before an apostrophe and store it in a variable. how would i do that?
|
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 06:52 PM |
| ################# "(.*)'") |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 06:52 PM |
ehh the function got screwed but the pattern is fully there
|
|
|
| Report Abuse |
|
|
s3vvy
|
  |
| Joined: 24 Feb 2011 |
| Total Posts: 983 |
|
| |
|
s3vvy
|
  |
| Joined: 24 Feb 2011 |
| Total Posts: 983 |
|
|
| 16 Mar 2017 06:53 PM |
i barely know anything about string manipulation, can you post the whole thing
|
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 06:55 PM |
local text = string:match("([^']*)'")
|
|
|
| Report Abuse |
|
|
|
| 16 Mar 2017 06:57 PM |
Oh I just realized you said you only wanted to match the letters; the other method matches anything but apostrophes
string:match("([%a]*)'")
|
|
|
| Report Abuse |
|
|