On 3/22/07, Robert Klemme <shortcutter / googlemail.com> wrote:

> Bullshit: just use select:
>
>  >> "foo\nbar\n".select {|l| /^f/ =~ l}
> => ["foo\n"]

Or, since he's really trying to exclude lines which include /usr/local/lib:

str.reject {|s| Regexp.new("/usr/local/lib").match(s)}

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/