Created
April 8, 2013 10:28
-
-
Save chrismcg/5335800 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[5] pry(main)> str = "The voucher entitles you to:> a kir> input> dish> dessert> coffee> a glass of wine" | |
=> "The voucher entitles you to:> a kir> input> dish> dessert> coffee> a glass of wine" | |
[6] pry(main)> str.split(/>/)[1..-1] | |
=> [" a kir", " input", " dish", " dessert", " coffee", " a glass of wine"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment