On Feb 18, 2008, at 8:37 AM, ts wrote:

>>>>>> "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.

I see.  So this translates matches.  Neat.

Thanks for the clarification, Guy.

James Edward Gray II