If I have a IP address String like : 10.120.230.78 I would like to get 10.120. out of it
But the parts of the address can change from 1 tot 3 numbers as we all know …
1.1.1.1 to 255.255.255.255 so ….
I believe you can use a pattern, but I don’t have an idea how to.
where
ipis the string holding the IP address.