>>>>> "J" == James Gray <james / grayproductions.net> writes: J> Can you explain how this works? vgs% ./ruby -e 'p "abcdabcd".gsub(/./, "a" => 1, "b" => 2, "c" => 3)' "123123" vgs% when ruby find a match it look if it has a key with this value. Guy Decoux