i have some ip log i want to return how you see on example some are random and some others are very long 599999999999999999.599999999999999999.599999999999999999
Example:
"192.168.0.1" => "192.168"
"1.3.4.5.6.9" => "1.3"
"50005.60005.60001.404" => "50005.60005"
"192.1.2.5" => "192.1"
etc.