Hydrodynamics of fish swimming and mechanical regulation of regeneration