Mega Code Archive

 
Categories / Ruby / String
 

Negate all or part of an argument with the caret (^), similar to its use in regular expressions

puts "That's all folks".delete "abcdefghijklmnopqrstuvwxyz", "^ha"