tags:

views:

43

answers:

1

I have the follow line:

text.gsub(/,\ /,'| ').first

But in addition to the first item, I want to apply it to the second item.

How can I do that?

+1  A: 
text.gsub(/,\ /,'| ').take(2)
Lavir the Whiolet