Matching effective chiral Lagrangians with dimensional and lattice regularizations