WoW:API strsplit: Difference between revisions

No change in size ,  26 November 2007
m
no edit summary
(Add note about multiple occurences of separator and add example using string.gmatch)
mNo edit summary
Line 12: Line 12:


:;delimiter : String - Delimiter
:;delimiter : String - Delimiter
:;subejct : String - String to split
:;subject : String - String to split




Line 21: Line 21:
== Example ==
== Example ==
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
  local a, b, c = strsplit(",", "a b c")
  local a, b, c = strsplit(" ", "a b c")


<big>'''Result'''</big>
<big>'''Result'''</big>
Anonymous user