Mesh with non equaly sized squares to equaly sized squares

Hi
I was wondering if there is a way to get a mesh with equaly sized squares
from a mesh with non eqaualy sized squares.


source mesh


target mesh

one snaps it to grid, one makes all of them same size