Most of the middle east was ruled by the Ottoman empire at the time.
They invaded Egypt, yes, but that was competition for Empire, more then Religious reasons.
The French Campaign in Egypt and Syria (17981801) was Napoleon Bonaparte's campaign in the Orient, ostensibly to protect French trade interests, undermine Britain's access to India, and to establish scientific enterprise in the region. It was the primary purpose of the Mediterranean campaign of 1798, a series of naval engagements that included the capture of Malta.
Don't see "religion" there, unless it's a conspiracy.
Nice quote from Napoleon:
The peoples we will be living alongside are Muslims; their first article of faith is "There is no other god but God, and Mahomet is his prophet". Do not contradict them; treat them as you treated the Jews, the Italians; respect their muftis and their imams, as you respected their rabbis and bishops. Have the same tolerance for the ceremonies prescribed by the Quran, for their mosques, as you had for the convents, for the synagogues, for the religion of Moses and that of Jesus Christ. The Roman legions used to protect all religions. You will here find different customs to those of Europe, you must get accustomed to them. The people among whom we are going treat women differently to us; but in every country whoever violates one is a monster. Pillaging only enriches a small number of men; it dishonours us, it destroys our resources; it makes enemies of the people who it is in our interest to have as our friends. The first city we will encounter was built by Alexander [the Great]. We shall find at every step great remains worthy of exciting French emulation.
Africa, "white mans burden." To bring "civilization" to the "savages." more about gold and Empire, not Religion.
The British outlawed the practice of sati and a couple of other customs, not Hinduism itself. Look it up if you want to find out why. (Just as a side note, Hindu reformers instigated and supported those "things" being outlawed.)
Your examples are examples of competition for empire, not Religious.