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

  • @bobbyhousel5846
    @bobbyhousel5846 Жыл бұрын

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

  • @rusa_

    @rusa_

    Жыл бұрын

    What was step 2 ? Lol

  • @lgjosad

    @lgjosad

    4 ай бұрын

    I have an exam in 2 days, heh. hope ill be writing this too!

  • @santosedward1998
    @santosedward19986 ай бұрын

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

  • @Medx111
    @Medx111 Жыл бұрын

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

  • @ঋতুপর্ণা
    @ঋতুপর্ণা11 ай бұрын

    You made it so simple, thanks a lot👍

  • @petramilanovic3434
    @petramilanovic3434 Жыл бұрын

    It was really helpful. Thank you very much!

  • @jeevanbastola6289
    @jeevanbastola6289 Жыл бұрын

    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

  • @mehdimojaradi
    @mehdimojaradi Жыл бұрын

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

  • @AymanelMoudden-xw6tr
    @AymanelMoudden-xw6tr8 ай бұрын

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

  • @faissalelmokaddem8026
    @faissalelmokaddem80265 ай бұрын

    Very nice explanation, Thank you!

  • @harshitdhupia
    @harshitdhupia10 ай бұрын

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

  • @RealMineManUK
    @RealMineManUK Жыл бұрын

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

  • @erothiuslol
    @erothiuslol Жыл бұрын

    Great vid, ty brother!

  • @mahdismirzaei3294
    @mahdismirzaei3294 Жыл бұрын

    Thank you , It was really helpful

  • @david-komi8
    @david-komi8Ай бұрын

    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.

  • @mariamkonare3901
    @mariamkonare39019 ай бұрын

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

  • @GuillermoGarcia75
    @GuillermoGarcia755 ай бұрын

    DUDE!!! STOP being sooo awesome!!!

  • @marekpumex
    @marekpumex Жыл бұрын

    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

    @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.

  • @xilllllix
    @xilllllix Жыл бұрын

    another useful vid, thanks!

  • @jesseluinstra1192
    @jesseluinstra1192 Жыл бұрын

    Thanks! for introducing and making sense to REGEX

  • @yevvvg
    @yevvvg Жыл бұрын

    thank you for the video!

  • @tomgreg2008
    @tomgreg2008 Жыл бұрын

    Helpful. Thanks.

  • @Da-silvaoluwatobiloba
    @Da-silvaoluwatobiloba Жыл бұрын

    Thanks bro, God bless you.

  • @harsharya828
    @harsharya828 Жыл бұрын

    amazing video 🔥🔥🔥

  • @mohamedsabry1494
    @mohamedsabry14945 ай бұрын

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

  • @amirmahdi621
    @amirmahdi621 Жыл бұрын

    that was very helpful tnx

  • @tecnom7133
    @tecnom71334 ай бұрын

    Thanks man

  • @spyder2374
    @spyder2374 Жыл бұрын

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

  • @basavarajkalur3570
    @basavarajkalur35708 ай бұрын

    Very helpful content

  • @karimjapparov5324
    @karimjapparov53247 ай бұрын

    thanks a million bro

  • @mahlatsemotlanthi5094
    @mahlatsemotlanthi5094 Жыл бұрын

    THAN YOU. I UNDERSTAND BASICS

  • @tonymagana6489
    @tonymagana6489 Жыл бұрын

    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?

  • @anmingtou256
    @anmingtou256 Жыл бұрын

    Love it, python is goated

  • @dhruvdonsahu9972
    @dhruvdonsahu99724 ай бұрын

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

  • @christofervega4810
    @christofervega48102 ай бұрын

    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

  • @israsuazo3345
    @israsuazo3345 Жыл бұрын

    very helpful

  • @emmanuelkona9208
    @emmanuelkona9208 Жыл бұрын

    Amazing

  • @sebastianmartinez5508
    @sebastianmartinez55088 ай бұрын

    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

  • @foadkh8210
    @foadkh8210 Жыл бұрын

    useful 🙏

  • @nameundefined6265
    @nameundefined6265 Жыл бұрын

    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

    @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.

  • @thiha920
    @thiha920 Жыл бұрын

    Thank You ...

  • @Dyamonic
    @Dyamonic10 ай бұрын

    When when he used a-z for the first search it gave "ello" but not "orld" does he need to do \s?

  • @T1s_kashyap

    @T1s_kashyap

    4 ай бұрын

    I guess yes

  • @JezzTransport
    @JezzTransport Жыл бұрын

    How do you make it so it returns true or false

  • @Ironpants57

    @Ironpants57

    Жыл бұрын

    Use pattern match in an "if" statement. Try it out.

  • @philtoa334
    @philtoa334 Жыл бұрын

    Thx_.

  • @numberiforgot
    @numberiforgot Жыл бұрын

    You must have telepathy because I was literally just about to search your vids for python RgX

  • @sahilgarg94
    @sahilgarg94 Жыл бұрын

    You have something different content that nobody has. X factor.

  • @polusanisriman6742
    @polusanisriman6742 Жыл бұрын

    Credit card numbers? 💀💀

  • @jaredbrooks2226
    @jaredbrooks2226 Жыл бұрын

    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

    @jaredbrooks2226

    Жыл бұрын

    Why not therefore get to know him?

  • @dominikjur3174

    @dominikjur3174

    5 ай бұрын

    Are u mad

  • @ImadSaci-xc4rm

    @ImadSaci-xc4rm

    4 ай бұрын

    There is no other god but only allah ,jesus is one of many prophets,wake up

  • @BarDots315

    @BarDots315

    3 ай бұрын

    But does he know how to extract the verse and chapter from bible quotes strings?

  • @nillieable

    @nillieable

    3 ай бұрын

    😅😅​@@ImadSaci-xc4rm

  • @AIdevel
    @AIdevel Жыл бұрын

    Dude you are quite talkative don’t talk let Python speaks

Келесі