Mega Code Archive
Categories
/
Ruby
/
Array
Grep [^g]
a = ["a", "b", "c", "d", "e", "f", "g", "h"] p a.grep /[^g]/ # => ["a", "b", "c", "d", "e", "f", "h"]