Jump to content




string help


  • You cannot reply to this topic
2 replies to this topic

#1 HurricaneCoder

  • Members
  • 52 posts

Posted 09 June 2013 - 12: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.

#2 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 09 June 2013 - 12: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. :)

#3 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 09 June 2013 - 12:13 PM

Dont forget about the Reference Manual!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users