Regular Expressions in Python
Ғылым және технология
In this video, we learn how to use regular expressions in Python to validate or check user input.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Пікірлер: 60
You were Step 1 to not failing my exam in 2 days. THANK YOU
@rusa_
Жыл бұрын
What was step 2 ? Lol
@lgjosad
4 ай бұрын
I have an exam in 2 days, heh. hope ill be writing this too!
Thanks very much for covering all the required content in minutes.
Neural I have been following you content for a while. It always good
You made it so simple, thanks a lot👍
It was really helpful. Thank you very much!
Love your vids, keep up the good work! and I need some tips because currently I am learning Python and I know the basics and have worked on some projects but don't really know what to do next
Thanks indeed for your efforts and sharing great contents. I am learning a lot from your channel.
Took a course and understood nothing about this concept. Saw your video ONCE and I understand everything now!
Very nice explanation, Thank you!
I am python learner from commerce field. I could understand it in first go. Thanks Bro
man wow thanks. Easy and fast, right to the point, especially on 10:00
Great vid, ty brother!
Thank you , It was really helpful
The difference between re.search and re.match is that re.seach matches a pattern anywhere in the string meanwhile re.match matches always at the beggining of a string, so is essentially re.search but with an automatic ^ sign. Also, for matching a whole string exists re.fullmatch, which does the same as re.search("^(...)$", text), although I prefer just re.match("(...)$", text) which is shorter.
thank you very much for your video it helps me a lot !
DUDE!!! STOP being sooo awesome!!!
6:20 I believe "search" search for any occurrence of rule (a-z) in the string and "match" search for every occurrence a-z (so when it finds any capital letter (not only on the begging) then it returns "none")
@david-komi8
Ай бұрын
Search matches anywhere in the string meanwhile match matches at the beginning. Is like search but with a ^ at the beginning of the pattern essentially.
another useful vid, thanks!
Thanks! for introducing and making sense to REGEX
thank you for the video!
Helpful. Thanks.
Thanks bro, God bless you.
amazing video 🔥🔥🔥
thank you very informative and good video, better than my professor
that was very helpful tnx
Thanks man
What if in between a pattern we have to assign a single space for "anything"..how to define that in regex ??
Very helpful content
thanks a million bro
THAN YOU. I UNDERSTAND BASICS
This is interesting. Is this how programs check if our new passwords are valid, for example when they say it must be at least 8 characters long and include at least one symbol?
Love it, python is goated
bro was rapping towards the end... btw great video
Thanks, I've learned a lot from this video One question, what is the theme you use? In pycharm when I try to write strings, everything comes out green and it's difficult to differentiate
very helpful
Amazing
Don't mind me. Just taking notes on the comments because I don't have my notebook with me: ^something$---> the string can only be composed by the something between the ^ and the $. ^something---> As long as the string begins with the something right after the^, you can add whatever you want afterwards. something$---> Same but the something has to be by the end check 11:50
useful 🙏
6:50, I see you struggling a bit with the explanation of the match and search functions. The search function will look through the whole tring for anything that maches the given partern, whereas the match one check if the provided string 'matches' the partern, kinda like a strictly equal but with paterns.
@lawrencedoliveiro9104
Жыл бұрын
“match” puts an implicit “\A” at the front of the pattern. There is also “matchall”, which effectively puts “\A” at the start and “\Z” at the end.
Thank You ...
When when he used a-z for the first search it gave "ello" but not "orld" does he need to do \s?
@T1s_kashyap
4 ай бұрын
I guess yes
How do you make it so it returns true or false
@Ironpants57
Жыл бұрын
Use pattern match in an "if" statement. Try it out.
Thx_.
You must have telepathy because I was literally just about to search your vids for python RgX
You have something different content that nobody has. X factor.
Credit card numbers? 💀💀
We're here making regular expressions but God has expressed His Great Love for us through is Only Begotten Son, Jesus Christ. But God demonstrates His own love toward us, in that while we were still sinners, Christ died for us. - Romans 5:8
@jaredbrooks2226
Жыл бұрын
Why not therefore get to know him?
@dominikjur3174
5 ай бұрын
Are u mad
@ImadSaci-xc4rm
4 ай бұрын
There is no other god but only allah ,jesus is one of many prophets,wake up
@BarDots315
3 ай бұрын
But does he know how to extract the verse and chapter from bible quotes strings?
@nillieable
3 ай бұрын
😅😅@@ImadSaci-xc4rm
Dude you are quite talkative don’t talk let Python speaks