http://stackoverflow.com/questions/14496006/finding-last-occurence-of-substring-in-string-replacing-that
Anonymous
Don't force yourself or others to reimplement functionality.