# File lib/rbot/messagemapper.rb, line 20 def remove_head_tail new = self.source.sub(/^\^/,'').sub(/\$$/,'') Regexp.new(new, self.options) end