This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
HurricaneCoder's profile picture

string help

Started by HurricaneCoder, 09 June 2013 - 11:05 AM
HurricaneCoder #1
Posted 09 June 2013 - 01:05 PM
Since I was testing out some stuff with string.gmatch I found that it is really useful. What I don't know is that how do you work string.gmatch because I only know the basic. I want to know what does "(%w+)" mean and how would I use something like this. Also how do you combine these magic character and character classes to get what I want.
Orwell #2
Posted 09 June 2013 - 01:11 PM
Sorry, but I believe it's best that we point you to the PIL page about patterns, the lua-users tutorial about patterns and the String library tutorial .
Those sources answer all your questions perfectly. If you have questions after reading that, we can help you here. :)/>
MudkipTheEpic #3
Posted 09 June 2013 - 01:13 PM
Dont forget about the Reference Manual!