title: what is the regular expression for male and female string
body: <p>I have a url like</p>
  
  <pre><code> /.../Male/...
   or
  
   /../Female/...
  </code></pre>
  
  <p>Now i want to do something like follows to replace the string's male female part with foo</p>
  
  <pre><code> /../foo/..
  </code></pre>
  
  <p>What is the regular expression for this...
  currently i am doing like below but no success</p>
  
  <pre><code>url.replace("(fe)?male","foo")
  </code></pre>