| |
|
|
| 08 Feb 2017 05:53 PM |
| could you explain what it does that ( mystring ):match( ... ) or string.match( mystring, ... ) does not |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2017 05:58 PM |
| To my knowledge, that string manipulating function doesn't exist. |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2017 05:59 PM |
| oh ok the python equivalent of lua code my bad i thought you meant the equivalent of s:match() in python to lua |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2017 06:07 PM |
Nope. Thanks though.
Bump = 1 |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Feb 2017 07:02 PM |
Bump = 3
WHERE DID YOU COME FROM, WHERE DID YOU GO? WHERE DID YOU COME FROM, COTTON-EYED JOE? |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2017 07:03 PM |
Wish I could help, but I have stumbled across C++, I tried python but sadly quit.
|
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Feb 2017 07:15 PM |
docs.python. org/2/library/re. html |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2017 08:21 PM |
@cntkillme
Think there's one for s:gmatch() as well? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Feb 2017 08:27 PM |
Probably but I don't know Python but just use findall
for (blah, blah) in re.findall(pattern, string): stuff |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2017 08:57 PM |
| Thanks for helping out even though this wasn't related to Lua. Appreciate it! ^^ |
|
|
| Report Abuse |
|
|