Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-08-05, 04:43 AM   #1
Szandos
A Defias Bandit
Join Date: Aug 2005
Posts: 3
Question Paring parameters with regexp

Need help in parsing the parameters to my slash command. I am doing a slash command that takes two parameters in the form "myCmd param1 param2". However, the params can contain spaces and thus should be in "", but I still would like to not have that when they don't contain spaces. Example:

myCmd mace sword
myCmd "mace of destruction" "sword of power"

I guess I have to use string.find to get the parameters out, but how would I do???

Thanks
Roberto
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Paring parameters with regexp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off