i am using a regex to parse my command:
code:
/^\/poo\s+(\S+)\s+(.+)$/i
i need to make it so that if the person only types one word after the command it will put it into the first regexp.$1 thingy.
can i just go
code:
RegExp.$1 = ""
to clear them when i am done?
thanks for your help