On Sat, Sep 21, 2002 at 12:55:28AM +0900, dblack / candle.superlink.net wrote: > > I would use #select, which filters based on a condition contained > in a code block: > > a = ["aaa","abb","bbb","acc","bcc","ccc"] > puts a.select {|e| /(a|c)cc/.match(e)} > > => > acc > ccc Thanks David! Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "But my God shall supply all your need according to his riches in glory by Christ Jesus." Philippians 4:19