We present the results of systematic experimental investigations and micromagnetic simulations for the ferromagnetic resonance in rectangular permalloy microstripes. It is shown that the resonant magnetization oscillations have a complex spatial structure including a quasi-homogeneous precession, lateral spin-wave resonances and localized edge modes, which strongly depend on sample orientation in an external magnetic field.