title: Replacing last octet of an IP v4 using C#
body: <p>I want to replace the last octet of an IP v4 for another new octet.</p>
  
  <p>For example, if I have below IP v4:</p>
  
  <pre><code>192.168.0.100
  </code></pre>
  
  <p>and I want the last octet to be 200:</p>
  
  <pre><code>192.168.0.200
  </code></pre>
  
  <p>What is the best way to do it using Linq or regular expressions?</p>