慕桂英4014372
可以用 rpartition 来做.123array_of_pieces = string.rpartition sub_or_pattern( array_of_pieces[(array_of_pieces.find_index sub_or_pattern)] = replacement ) rescue nilarray_of_pieces.join