Skip to content

Instantly share code, notes, and snippets.

@chrismcg
Created April 8, 2013 10:28
Show Gist options
  • Save chrismcg/5335800 to your computer and use it in GitHub Desktop.
Save chrismcg/5335800 to your computer and use it in GitHub Desktop.
[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