The leaking pipe can be replaced with the use of copper and PEX piping. You don't want to get drenched when opening the pipe if you turn off the main water line. To remove the leaking section, use a pipe cutter.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.