Guest User

Stuff

a guest
Oct 27th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.12 KB | None | 0 0
  1. str = "bad_stuff blah good_stuff"
  2. abc = str.slice((str.index('blah'))..0)
  3. puts abc # => ''
  4. #i want # => 'good_stuff'
Advertisement
Add Comment
Please, Sign In to add comment