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