You could use a variable that's set when it's loaded instead of manually changing the nick/password. Also, you don't really need regex for this. :s