--------------020507000909060309010607
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

On 1/11/2004 9:06 AM, Robert Klemme wrote:

>irb(main):002:0> "a + a".scan( /\w+|+/ )
>["a", " "c", "+", "a"]
>irb(main):003:0> "a + a".scan( /\w+|+|\s+/ )
>["a", " " ", "c", "+", " ", "a"]
>
>What are you missing?
>  
>

What about this? It produces what the original poster asked for in his 
original message.

"a + a".split //
["a", " " ", "c", "+", " ", "a"]

-- 
Never trust a girl with your mother's cow,
never let your trousers go falling down in the green grass...

http://www.joeygibson.com
http://www.joeygibson.com/blog/life/Wisdom.html


--------------020507000909060309010607--