Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

FO-2 The Mohammed's Name Problem

Write a single regular expression that accepts these variations of Mohammed's name:

1. Mohammed

2. Mohamad

3. Muhammad

4.Mohamed

Any other version of the name or any other string will be rejected!

Hint: You may want to refresh the alternatives and optional characters knowledge you gained.