Validate IP Address | Regex | Leetcode #468

preview_player
Показать описание
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 :)

=================================================================
=================================================================

Рекомендации по теме
Комментарии
Автор

U decided to teach the whole logic and solved the purpose of this question. Brilliant explanation

abhinav
Автор

I've always found regexes a bit confusing and just tend to look them up when I need to. Appreciate the patience with which you do these problems. It helps so much in building understanding of approach to solution unlike some channels which just walkthough algos. We need to build problem solving skills and not memorization. Content quality and teaching style is awesome.

BaishaliGhosh
Автор

tomorrow is my code-nation interview, kaash yahi puchle voh . You are amazing man, learnt a lot of things as it was the first time doing regex. Best coding channel ever found

ArpitDhamija
Автор

I'm amazed at the way you taught this. You started with a simple regex to eventually build the logic for the main problem.
Kudos and thank you for this explanation.

I felt sorry for you at the end when you had to rush as it seemed you were worried about video length. But let me tell you a good student/follower wouldn't mind lengthy but useful explanation.
Thank you once again.

sagardafle
Автор

this is the first, last and best video I have ever seen on Regex

ShivamPanchbhai
Автор

I think this crash course on regex is concisely packed with good content.
Big thanks to author!

davronkarimov
Автор

A big fan of the way of explaining your videos, sir. Understood it very well. Thank you for making us not hate coding.

mansiagrawal
Автор

Awesome. Initially I have solved it with the straightforward approach using conditional operators and string operators. But solving it with regex was more reliable and efficient. Thanks for your efforts.

venothanand
Автор

Loved this explanation. This is the first time ever that I have understood regex and that too so well. Thanks a lot.

ayushisinghal
Автор

this is the most clear explanation of regex formation for validation.

vgsuresh
Автор

I always search your channel for any complex problem explanation and u never disappoint me with ur excellent explanation approach.thanks😀

FOODASMRFAMILY
Автор

Brilliant, I learnt Regx in one video + solved a leetcode question, Thanks a lot sir

pritishpattnaik
Автор

i like your teaching. The way you cleared the suspensive doubt. I really appreciate your work.

rishabhkumar
Автор

OMG! Your explanation is AMAZING! It is clear and very easy to understand. Thank you, Sir!

rwzaki
Автор

The best REGEX Explanation Ever....!!!! Great Teaching :)

prateeksrivastava
Автор

Correction:
It seems like you may be looking for a pattern that specifically matches the sequence ab repeated one or more times. If that's the case, you should use the regular expression (ab)+, not [ab]+.

The regular expression [ab]+ will match any string that contains one or more occurrences of either a or b. The + sign specifies one or more occurrences, and the [ab] specifies a character class, which matches any character that is either a or b.

aktgaming
Автор

Best Regex Video ever made. Thank You.

saurabhsomani
Автор

Thnkyou, I could find regex pattern but not explanation anywhere. Now its registered in my mind.

amrita
Автор

Regex library for validating an IP is totally explained.
Excellent explanation dude;!

shreyandey
Автор

Loved the video!Sir can u please guide us how are you so consistent in ur work, It would really help us all!

thunderbolt