in reply to Re^3: Shortest way to replace a string
in thread Shortest way to replace a string

Short? How about this?

s/^(30\.00).*? /$1.00.00 /;

UPDATE: Added the missing space in the "replace" bit.

Replies are listed 'Best First'.
Re^5: Shortest way to replace a string
by hippo (Archbishop) on Sep 12, 2013 at 14:11 UTC
    s/^(30\.00)\S+/$1.00.00/;

    is two fewer.