Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-03-05, 08:03 AM   #1
vincentgdg
A Murloc Raider
Join Date: Sep 2005
Posts: 8
How to scan the command line for an item link with spaces

Hello there.

I am nearly finished with my addon "restack" but now I have a little problem with scanning the command line.

I use a function GetCmd() from somewhere, but that one splits arguments when there is a space in the line.

So when I get a line with a link in it that has space, it breaks.

What I want to have is a function that does the following:

cmdline = "a test" -> returns "a","test"

cmdline = "4231:0:0...[name with spaces] 3" -> returns "4231:0:0...[name with spaces]","3"

I know there must be a very easy regex for this, if I only would be better in this. :-)

Pls help.

Regards
Thomas
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to scan the command line for an item link with spaces


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