Say I have a string: Hey what\'s up @dude, @how\'s it going?
Hey what\'s up @dude, @how\'s it going?
I\'d like to remove all the characters before@how\'s.
@how\'s
Use String#slice
s = "Hey what's up @dude, @how's it going?" s.slice(s.index("@how")..-1) # => "@how's it going?"