A typical scenario on how the whole process works can be simplified in the example given here. For instance, in a common demineralizer, influent water which passes through a cation exchange resin will be stripped off of it metallic cations salt to become acids whereby loss of the ions will be replaced with a similar corresponding amount of hydrogen ions. The resultant acids will then be removed through another alkaline regenerated anion exchange resins in which this time round, the anions present in the wastewater will be substituted with equivalent amount of hydroxides. As the capacity of the bed always has a certain fixed limit, eventually the resin will become exhausted and thus has to undergo regeneration process. The cation exchange resin is regenerated using either hydrochloric or sulfuric acid, producing waste brine in the process while the anion resin will be regenerated with sodium hydroxide.