> puts 'a-b-c-'.gsub(/(.)-/) { |str| str + '_' } i think this is incorrect. id appends an underscore. i need to replace it.