regex try catch on irc bot