in reply to Re^4: regex not working..
in thread regex not working..

Maybe you want to test your code outside of your irc bot, in a short program that you can also post, so we can also try it to see where it goes wrong?

Also, have you considered Bot::BasicBot or the other Bot modules that CPAN provides instead of rolling your own?