Regular Expressions in Python

preview_player
Показать описание
In this video, we learn how to use regular expressions in Python to validate or check user input.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

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

You were Step 1 to not failing my exam in 2 days. THANK YOU

bobbyhousel
Автор

Neural I have been following you content for a while. It always good

Medx
Автор

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.

david-komi
Автор

Thanks very much for covering all the required content in minutes.

santosedward
Автор

Took a course and understood nothing about this concept. Saw your video ONCE and I understand everything now!

AymanelMoudden-xwtr
Автор

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")

marekpumex
Автор

man wow thanks. Easy and fast, right to the point, especially on 10:00

RealMineManUK
Автор

I am python learner from commerce field. I could understand it in first go. Thanks Bro <3

harshitdhupia
Автор

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

sebastianmartinez
Автор

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

jeevanbastola
Автор

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

christofervega
Автор

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.

nameundefined
Автор

thank you very informative and good video, better than my professor

mohamedsabry
Автор

Thanks! for introducing and making sense to REGEX

jesseluinstra
Автор

bro was rapping towards the end...
btw great video

dhruvdonsahu
Автор

Thanks indeed for your efforts and sharing great contents. I am learning a lot from your channel.

mehdimojaradi
Автор

What if in between a pattern we have to assign a single space for "anything"..how to define that in regex ??

spyder
Автор

It was really helpful. Thank you very much!

petramilanovic
Автор

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?

tonymagana
Автор

thank you very much for your video it helps me a lot !

mariamkonare
welcome to shbcf.ru