to_irc_regexp (String)

    # File lib/rbot/irc.rb, line 318
      def to_irc_regexp
        regmask = Regexp.escape(self)
        regmask.gsub!(/(\\\\)?\\[*?]/) { |m|
          case m
          when /\\(\\[*?])/
            $1
          when /\\\*/
            '.*'
          when /\\\?/
            '.'
          else
            raise "Unexpected match #{m} when converting #{self}"
          end
        }
        Regexp.new("^#{regmask}$")
      end