We consider a general double pulsed field gradient experiment with arbitrary experimental parameters and calculate an exact expression for the NMR signal attenuation from restricted geometries, which is valid at long wavelengths, i.e., when the product of the gyromagnetic ratio of the spins, the pulsed gradients' duration, and their magnitude is small compared to the reciprocal of the pore size. It is possible to observe microscopic anisotropy within the pore space induced by the boundaries of the pore, which can be used to differentiate restricted from free or multicompartmental diffusion and to estimate a characteristic pore dimension in the former case. Explicit solutions for diffusion taking place between parallel plates as well as in cylindrical and spherical pores are provided. In coherently packed cylindrical pores, it is possible to measure simultaneously the cylinders' orientation and diameter using small gradient strengths. The presence of orientational heterogeneity of cylinders is addressed, and a scheme for differentiating microscopic from ensemble anisotropy is proposed.