title: How to trim IP Address to get the first 3 parts of it?
body: <p>I need to trim a given IP Address to get the first 3 parts of it</p>
  
  <p><strong>Example:</strong></p>
  
  <p>"192.168.1.20"  ➨  "192.168.1."<br>
  "29.6.60.241"   ➨  "29.6.60."</p>