Note, the situation is vastly different now. The disparity between the development of the western nations and the middle east is a huge factor here. Back then, nobody was bothered by religious law (indeed, they'd be bothered by lack of it). Nowadays, western countries expect middle eastern ones to go in a few years through what took them hundreds. On the other hand, those more advanced countries can now influence the less advanced ones culturally, so certain processes may go differently. It's a very new situation, in which Egypt seems to be doing quite well.
Indeed which makes this whole situation very interesting