title: RegEx to replace the first and last character of string for a particular match
body: <p>Something like this. </p>
  
  <p>The sentence is  </p>
  
  <pre><code>string ttt = "This is ?chef? and ?teacher? time";
  </code></pre>
  
  <p>This sentence should change to </p>
  
  <pre><code>ttt = "This is 'chef' and 'teacher' time";
  </code></pre>
  
  <p>I was looking at some online samples
    <code>Regex.Replace(ttt, @"\?([^\$]*)\?", "REPLACE");</code> but I am not able to figure out what should I write in place of <strong>REPLACE</strong> . It should be per word basis.</p>
  
  <p>Kindly help me with this.</p>