title: How to replace N number of characters in a file after a specific keyword in Powershell script?
body: <p>I have a file prototype as follows:</p>
  <pre><code>// &lt;some stuff&gt;
  #define KEYWORD release01-11
  // &lt;more stuff&gt;
  </code></pre>
  <p>How can I delete the last two characters in the same line as KEYWORD and replace them with two different characters (12 in this case), in order to end up with:</p>
  <pre><code>// &lt;some stuff&gt;
  #define KEYWORD release01-12
  // &lt;more stuff&gt;
  </code></pre>
  <p>I'm trying to use Clear-Content and Add-Content but I cannot get it to do what I need. The rest of the file needs to remain unchanged after these symbols have been replaced. Is there a better alternative?</p>