in reply to Re: regular expessions question: (replacing words)in thread regular expessions question: (replacing words)
$organized=~s/\s\w+/\sz/g; [download]
You are, for example, replacing the string " something" with the string "sz" instead of " z".