I don't know about replacement carpet, but you might try Oxy Out! pet stain remover? It works really well and is the only thing I have found to REALLY remove yellow pet stains. Saturate the stain and put a damp white towel over it and leave it overnight. I find it at Walmart, but it may be available other places. At Walmart, it's in the pet section.