Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test_text = 'RubyMonk Is Pretty Brilliant'
- nash = test_text.match(/ ./)
- nash.to_s
- number = test_text.index('nash')
- number.to_i
- freedom = test_text.match(/ ./, number)
- puts "#{freedom}"
Advertisement
Add Comment
Please, Sign In to add comment