title: Regular expression to match 0 or more occurrences not working
body: <p>This question may sound stupid. But I have tried several options and none of them worked.</p>
  
  <p>I have the following in a string variable.</p>
  
  <pre><code>string myText="*someText*someAnotherText*";
  </code></pre>
  
  <p>What I mean by above is that, there can be 0 or more characters before "someText". There can be 0 or more characters after "someText" and before "someAnotherText". Finally, there can be 0 or more occurrences of any character before "someAnotherText".</p>
  
  <p>I tried the following.</p>
  
  <pre><code>string res= Regex.Replace(searchFor.ToLower(), "*", @"\S*");
  </code></pre>
  
  <p>It didn't work.
  Then I tried the following.</p>
  
  <pre><code>string res= Regex.Replace(searchFor.ToLower(), "*", @"\*");
  </code></pre>
  
  <p>Even that didn't work.</p>
  
  <p>Can someone help pls ?
  Even though I have mentioned "*" to indicate 0 or more occurrences, it says that I haven't mentioned the number of occurrences.</p>