title: How I replace a text like javascript in c# ...?
body: <p>I am new to C# programming. I previously wrote Javascript. I want to replace a text in C# just like in JavaScript. Here is my JavaScript Code:</p>
  
  <pre><code>var str = "this is my text";
  str = str.replace(/\b(\w)/g,function(matched){
     return matched.toUpperCase();
  });
  </code></pre>
  
  <p>How is this done in C#? Thanks in Advance and sorry for my poor english.</p>