On 22 Mar 2007, at 15:15, Robert Klemme wrote:
> >> "foo\nbar\n".select {|l| /^f/ =~ l}
> => ["foo\n"]

Thanks for that.  So simple once you've seen it.

Regards,
Andy Stewart