<p>Regional wars have required Cairo to maneuver between competing demands.</p>