Washer rinse cycle problem

the wash cycle runs fine, but when it gets to the rinse cycle the water just runs and runs and never fills. this is a 20 + yr old washer and this is the first problem i have ever had. i hate to get rid of it because it has been so reliable, but know at this age it is a matter of time. is it a costly repair?

A model number may help others help you
Model Number Locator