From: Sebastian Hungerecker Date: 2007-04-28T01:47:09+09:00 Subject: Re: string replacement... Josselin wrote: > irb(main):009:0> str[/\d+/] = "9999" > => "9999" The return value of the assignment is "9999", but the value of str will be the whole string with the 9999 at the end, so exactly what you wanted. -- Ist so, weil ist so Bleibt so, weil war so