On Tue, 24 Jun 2003 20:45:43 +0900, Rob wrote:

> I am having a problem with regular expression.

Have you tried String#split  ? 

> irb
irb(main):001:0> s = "oranges apples bananas"
=> "oranges apples bananas"
irb(main):002:0> s.split(/ /)
=> ["oranges", "apples", "bananas"]
irb(main):003:0>


--
Simon Strandgaard