How do i get just the 3 rows of a IP
Example IP is 127.0.0.1 i just want it to take 127.0.0.

Cutting the last number off.