I am trying to modify data frame values and mask IP addresses using regex.
I have a list of IP addresses and I am trying to mask them in the data frame:
This is what I have:
123.123.123.123 and I am expecting to get 12X.XXX.XXX.X23
23.123.123.123 and I am expecting to get 23.XXX.XXX.X23
So I am always leaving 2 first and 2 last elements of IP, the rest of IP I am trying to hide.