I am having a problem with regular expression.

This is my text
---------------------------------------
oranges apples bananas
---------------------------------------

I want to break this text into words so that I can have an array with the
following elements.
array[0] = oranges
array[1] = apples
array[2] = bananas

But it is not working...

I am trying to match the pattern with this regular expression.

/.*[^\s]/

Can anybody help me with this?
Thanks,
Rob