quote:
Originally posted by Suma
Message == "/uit"
A more reliable way would be to use Message.match("^/uit"). Then it doesn't matter if you type anything after the command.
^/uit is a regular expression. This one is very simple: '^' means start of line, and '/uit' means literally '/uit'.
A more complex regex is ^.*\A0{(.*)}$. It's very useful: see if you can guess what it matches