Defanging an IP Address

Easy
Strings String

Replace every '.' with '[.]'.

Constraints

Valid IPv4

Examples

Example 1:
Input: 1.1.1.1
Output: 1[.]1[.]1[.]1
Example 2:
Input: 255.100.50.0
Output: 255[.]100[.]50[.]0
▲ Console
📱

Install Talent Enrich

Get instant access to jobs and career tools on your device.