Regular Expressions: Replace the Last Occurrence of a Pattern in Ruby | Dark Hacker News