Superchomp gonna eat you!

No newlines are safe!!

  class String
    def superchomp
      self.strip.gsub(/^(n|r|rn)+|(n|r|rn)+$/,'')
    end
  end

Please only use it for good and not evil.

0 Responses to “Superchomp gonna eat you!”


  1. No Comments

Leave a Reply