Type "M-x replace-regexp RET ^ RET > RET".
To do this only in the region, type "C-x n M-x replace-regexp RET ^ RET > RET C-x w".
WARNING: The command narrow-to-region (C-x n) is disabled by default because it can be very confusing (ie., "Oh no! Where did my file go?").