The most common example is selective leaching of zinc from brass alloys containing more than 15% zinc (dezincification) in the presence of oxygen and moisture, e.g. from brass taps in chlorine-containing water.  Dezincification has been studied since the Civil War era, and the mechanism by which it occurs was under extensive examination by the 1960s. It is believed that both copper and zinc gradually dissolve out simultaneously, and copper precipitates back from the solution.  The material remaining is a copper-rich sponge with poor mechanical properties, and a color changed from yellow to red.  Dezincification can be caused by water containing sulfur, carbon dioxide, and oxygen. Stagnant or low velocity waters tend to promote dezincification.
To combat this, arsenic or tin can be added to brass, or gunmetal can be used instead.  Dezincification resistant brass (DZR), also known as Brass C352 is an alloy used to make pipe fittings for use with potable water.  Plumbing fittings that are resistant to dezincification are appropriately marked, with the letters "CR" (Corrosion Resistant) or DZR (dezincification resistant) in the UK, and the letters "DR" (dezincification resistant) in Australia.