View Single Post
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