Validate IP Address | Regex | Leetcode #468
This video explains a very unique programming interview problem which makes use of regular expression.In this problem, we are given an IP string and we need to validate if the given IP is a valid IPv4 address or a valid IPv6 address.There are some set of rules for both IPv4 and IPv6 address.We can use simple IF-ELSE statements to solve this problem but that technique is
not very reliable as there are too many cases to handle.An easier way to solve this problem is by using the REGEX library used to check for regular expression patterns.I have showed how we can approach the problem using regular expression.I have also explained how the regular expression works by taking sufficient number of examples.I have explained general way to form a regular expression.At the end of the video, i have shown the code walk through of the algorithm.CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful…CYA 🙂
=================================================================
INSTAGRAM: https://www.instagram.com/surya.pratap.k/
LinkedIn: https://www.linkedin.com/in/surya-pratap-kahar-47bb01168
=================================================================
CODE LINK: https://gist.github.com/SuryaPratapK/35f96572b43683ea108bd38f129ea4bd
ip address