. with [.].
Given a valid IPv4 address ip, return its defused form.ip='10.0.0.1' → '10[.]0[.]0[.]1'
Each of the three dots becomes [.].
ip='172.16.254.3' → '172[.]16[.]254[.]3'
The digits stay as they are; only the dots change.
ip is a valid IPv4 address: four numbers from 0 to 255 separated by dots, with no leading zerosip='10.0.0.1'
'10[.]0[.]0[.]1'
Run checks the first 3 tests in your browser. Submit checks all 45 tests on the server, hidden ones included.