Possible Duplicate:
Is there an equivalent of Array#find_index for the last index in ruby?
I have a string
story = "Everything before the word irrelevent is irrelevent. Everything after it is relevent"
I want to remove everything before(and including ) the last occurence of “irrelevent”. How do i do this in ruby.
Also, you misspelled irrelevant