Shoutbox

Regular expression help... plz? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Regular expression help... plz? (/showthread.php?tid=69219)

Regular expression help... plz? by Baggins on 12-06-2006 at 08:56 PM

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:)