Python Tutorial: re Module - How to Write and Match Regular Expressions (Regex)

Поделиться
HTML-код
  • Опубликовано: 23 окт 2017
  • In this Python Programming Tutorial, we will be learning how to read, write, and match regular expressions with the re module. Regular expressions are extremely useful for matching common patterns of text such as email addresses, phone numbers, URLs, etc. Learning how to do this within Python will allow us to quickly parse files and text for the information we need. Let's get started...
    The code from this video can be found at:
    github.com/CoreyMSchafer/code...
    Python String Slicing Tutorial:
    • Python Tutorial: Slici...
    Python Files Tutorial:
    • Python Tutorial: File ...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python

Комментарии • 1,2 тыс.

  • @sarithsn
    @sarithsn 3 года назад +546

    Personal timestamps for second, third ..nth viewings:
    0:00 - What are regular expressions.
    0:52 - Re module and example intro.
    1:28 - Raw string in Python
    2:29 - Simple examples using re.compile and finditer
    5:29 - Escaping special characters with a backslash
    7:04 - Use regex to search for patterns. Use of meta-characters.
    10:21 - Metacharacters continued. Anchors. Word boundaries.
    12:04 - Anchors continued. ^ and $
    13:55 - Practical examples. Matching phone numbers of patterns 123-456-7890 or 123.456.7890
    18:58 - Precise matching using character-set
    20:24- Character-set only matches one character in the set
    21:27 - Match specific numbers. (800,900 phone numbers)
    22:57 - Role of dash(-) within a character set. Used to specify ranges.
    24:16 - Role of carets (^) within a character set. Used to negate.
    25:50 - Use of quantifiers to match more than one character at once.
    31:20 - Groups. Match several different patterns
    33:08 - Recap of previous concepts with examples. Matching email addresses
    36:56- Deciphering existing regular expressions.
    39:05 - Capturing information from groups. The group method in the match object
    44:07 - Back reference to reference the captured group. Sub method to perform substitution
    46:35 - findall method. Just returns the matches as a list of strings
    47:58 - match method. Matches at the beginning of string.
    49:30 - search method. Search the entire string.
    50:08 - flags . Examples: ignorecase, multiline, verbose

    • @Jack-jq9vl
      @Jack-jq9vl 2 года назад +6

      Thank you so much these time stamps have saved me so much time

    • @ahmedifhaam2669
      @ahmedifhaam2669 2 года назад +3

      3 months ago when I saw this comment, I thought it was kinda dumb. now its my second, third, nth time going through this comment lmao

    • @pratyushupadhyaya7367
      @pratyushupadhyaya7367 2 года назад +4

      YOU ARE A REALLY GOOD MAN

    • @md.enamulhoq9389
      @md.enamulhoq9389 2 года назад +1

      how do we use underline( not underscore) in re python?

    • @spyderkavin
      @spyderkavin 2 года назад +2

      pin this comment

  • @vishwa4908
    @vishwa4908 6 лет назад +908

    Corey, Your way of teaching is impeccable.

    • @arveycozza9820
      @arveycozza9820 6 лет назад +6

      *Your

    • @omarkhan5223
      @omarkhan5223 5 лет назад +7

      *teaching is

    • @ITSMIAS
      @ITSMIAS 5 лет назад +43

      @@omarkhan5223 cheers mate thanks for fixing his fucking English now Corey can properly understand his compliment

    • @felixospina1268
      @felixospina1268 3 года назад

      H

    • @MayankSingh-wd6zq
      @MayankSingh-wd6zq 3 года назад

      Hey, is this whole python tutorial is good for data science??? I mean do we need all this topics to get started with data science, plz tell me i m begginer.

  • @SlottySeconds
    @SlottySeconds Год назад +52

    ChatGPT is recommending your videos when I type Create a 365 day plan for learning python including RUclips videos and links to reading materials and anything else that might help, make it work around my schedule, I work 5am-7pm Monday to Thursday.

    • @anyarobinson2334
      @anyarobinson2334 8 месяцев назад

      That's such a good idea. I'm now going to do that to make myself a selflearning lesson plan now.

  • @mightymaxglitches1548
    @mightymaxglitches1548 4 года назад +40

    Only good teachers prepare their lessons beforehand. This video is very informative, seamless, and so helpful

  • @stevensbrito7188
    @stevensbrito7188 6 лет назад +277

    I really have to say that not everybody has that pedagogy you have and I really appreciate, or better said, WE really appreciate your time making those video tutorials. I always recommend you to everyone who wants to know python or even if they know already. I have learned a lot, but I always watch your videos to keep learning, even if I forgot some topics that I don't want to pass over. By another hand this the best video tutorial that I ever have seen about Regular Expressions. Thank you very much Corey.

    • @FreePalestine8096
      @FreePalestine8096 6 лет назад +9

      My feelings exactly. Corey is an excellent teacher! So grateful for these videos :)

    • @patobrien2329
      @patobrien2329 3 года назад +3

      Well spoken, Stevens Brito !

  • @mralirezaaaaa
    @mralirezaaaaa 6 лет назад +142

    This was what I really wanted, i searched for python RE all over RUclips, but none of those videos were like this! thanks corey, you are the best ptython teacher :)

    • @coreyms
      @coreyms  6 лет назад +14

      Thanks! I'm glad you found it helpful

    • @md.enamulhoq9389
      @md.enamulhoq9389 2 года назад

      @@coreyms how do we use underline( not underscore) in re python?

  • @theinfant
    @theinfant 6 лет назад +15

    Man, you are an AMAZING teacher. I spent a whole lot of time trying to just be able to know how this worked, and I basically understood all of what you showed here, after watching this one video. thank you so much :)

  • @killerpesty
    @killerpesty 5 лет назад +4

    Corey, this is one of the best explanations of regex I have found. I have been trying to wrap my mind around this for a very long time. The way you break it down and explain it is exceptional.

  • @sadiqueahmed2693
    @sadiqueahmed2693 2 года назад +26

    This is the best regular expression teaching I have ever seen and believe it’s the best in the world. It covers almost everything in detail. Thank you Corey.

  • @studiolicio
    @studiolicio 5 лет назад +7

    BEST regex explanation I've ever watched. Thanks!

  • @sarahmusinde4327
    @sarahmusinde4327 9 месяцев назад +1

    Major props, Corey! This tutorial is hands down one of the best I've seen on regex in python. The clarity of your explanations made it a breeze to grasp a big thanks for sharing this knowledge.

  • @kgautamkk
    @kgautamkk 5 лет назад +2

    One of the best RegEx tutorials I have come across so far on the web. You made regex look so easy!!

  • @sirSuhrab
    @sirSuhrab 6 лет назад +28

    Never ever in my life I had a better teacher than Corey! You are awesome!

  • @Krishna-zh3pw
    @Krishna-zh3pw 5 лет назад +26

    Straight to the point means Corey Schafer tutorials.

    • @MayankSingh-wd6zq
      @MayankSingh-wd6zq 3 года назад

      Hey, is this whole python tutorial is good for data science??? I mean do we need all this topics to get started with data science, plz tell me i m begginer.

  • @kinwong6383
    @kinwong6383 5 лет назад +15

    Amazing tutorial. I gave up watching my professor's video and came to this.
    This video needs to go viral!!

  • @manaf1563
    @manaf1563 6 лет назад +1

    You are one of the best educators I've come across learning python. Instructive, organized and simple.

  • @2kpresident363
    @2kpresident363 4 года назад +4

    You're by far the best teacher I've ever seen on youtube. When I listen to your lesson, everything unclear to understand gets crystal-clear. I have to say you're a wizard of python-teaching. Thank you so much

  • @ultiumlabs4899
    @ultiumlabs4899 5 лет назад +5

    this tutorial really gives enlightment to the regular expression topic, finally I think I understand about regex, I've tried to understand about regex but feel difficult before this video. your explanation is superb. Thanks Corey, really appreciate your tutorial.

  • @suhailchougle7315
    @suhailchougle7315 4 года назад +1

    Searched for RE all over RUclips and none of the other videos are even close to this video,amazing bro
    Thank you so much really appreciate it

  • @MsSuyash1995
    @MsSuyash1995 5 лет назад +2

    Hands down, the best video on regular expressions on RUclips... I loved both of your videos on regular expressions...

  • @preranajoshi8488
    @preranajoshi8488 5 лет назад +5

    Thank you so much for the tutorial. Through this entire 1 hr session I felt like I know regex properly. Very confident with my regex skillls.

  • @minasmorgul6054
    @minasmorgul6054 4 года назад +10

    I'm 2 minutes in, and have learned more than in past 3 days. Keep on the good work!

  • @dimianovic7717
    @dimianovic7717 3 года назад

    Thank you so much! I love your way to teach! It's not to be taken for granted that so many people simply watch an hour of tutorial straight!

  • @hellospam879879
    @hellospam879879 5 лет назад +2

    I too searched the internet without luck until I saw this video: this starts at step 1 and moves quickly forward - nice job Corey and thanks.

  • @sonniiiiii
    @sonniiiiii 11 месяцев назад +4

    It was such a great tutorial. This was my first time learning Regex, and I didn't know you'll break it down this much simpler. Great explanation!
    Thanks a lot! ❤

  • @BiancaAguglia
    @BiancaAguglia 5 лет назад +13

    Thank you, Corey. I'm finally beginning to see the light at the end of the regex tunnel. 😀 Your video was a huge help.

  • @shubhamprakash1176
    @shubhamprakash1176 4 года назад +3

    The best regular expression tutorial I have seen till today.
    I just loved it.

  • @landrobin24
    @landrobin24 5 лет назад +2

    Reading this topic in the books was giving me a lot of headaches, but your video just made it a breeze to understand the concept of RegEx. Thanks a ton

  • @clementlin3140
    @clementlin3140 Год назад +7

    This is gold..... I'm a backend engineer with 2 yrs experience. And keep getting regex questions in job interviews recently... This tutorial concludes everything needed! Thank you so much Corey, I really appreciate it!

  • @vijaypracash
    @vijaypracash 5 лет назад +18

    Simply superb. Corey has converted a complex concept into an easy and simple with his excellent teaching skills. Thank you Corey!!

  • @YitzharVered
    @YitzharVered Год назад

    Amazingly useful. Never thought I'd see the day when a tutorial actually helped without directly disscussing my issue, but good god this one manages it. Amazing.

  • @yourev100
    @yourev100 3 года назад +7

    For the first time,, I have understood regular expression coz of this tutorial. And am going to contribute. Thank you so much

  • @plxiznogoud3328
    @plxiznogoud3328 6 лет назад +16

    I watch lots of videos related to programming and so far I haven't seen anyone upload high quality material as consistently as you do. There's a lot of content out there nowadays but most just scratches the surface. Your videos live up to the famous quote by Einstein "Everything should be made as simple as possible, but not simpler". :)

    • @coreyms
      @coreyms  6 лет назад +2

      Thank you! I appreciate that.

  • @odetolaolaitan7557
    @odetolaolaitan7557 5 лет назад +6

    You're by far the greatest teacher I've listened to on any subject matter. God bless you brother.

  • @JesseTorres90266
    @JesseTorres90266 3 года назад

    This was the best hour spent! I have walked away with an incredible understanding of RE that exceeds what I got in a college course and other materials. Excellent! Excellent! Excellent!

  • @korkunctheterrible4302
    @korkunctheterrible4302 2 года назад

    I am someone who gets easily distracted by irritation and thanks to Corey's voice, tone, articulation and all, as well as his breaking down of subject matter, I am able to pay more attention than I normally can. Mentally active, yet very peaceful. Thank you. All the best to you.

  • @mansouri9430
    @mansouri9430 5 лет назад +3

    OMG. how can you be so fluent and focused in a 53min video? You're the ultimate teacher. Thank you

  • @skhanal123
    @skhanal123 5 лет назад +3

    I have watched multiple videos on regex but none of them like this. This is really really GOOD !!

  • @johnmandrake8829
    @johnmandrake8829 3 года назад

    Honestly its such a relief to learn a topic for which you have a tutorial posted. Its a testmaent to itself on how much clearer and superior your content is to others

  • @ivanabregu1
    @ivanabregu1 4 года назад +16

    The way Corey goes incrementing what he is teaching is amazing including this topic that is a pain in the ass. You can't realize when you are learning the hardest part cos Corey made us easy. Thanks a lot!

  • @swaantjuh
    @swaantjuh 4 года назад +9

    I was real sceptical about this video because I didn't think I would grasp this concept in less than an hour. But im only 16 minutes in and im already in love with regular expressions! Thanks for making this video, you really made my week!

  • @cjromb
    @cjromb 4 года назад +3

    I just found this video today, and watched the ENTIRE thing! Thank you thank you! It was absolutely fantastic.

  • @lamski3286
    @lamski3286 3 года назад

    I have taken many paid courses on this topic and yet your free tutorial is the best so far, you were born to teach!

  • @gssinfotech7748
    @gssinfotech7748 4 года назад +2

    This is the best RE tutorial I ever came across. Thank you so much Corey for your effort making this tutorial.

  • @rishabkumar9578
    @rishabkumar9578 4 года назад +17

    My mind doesn't resist to learn python RE while Corey teaches.
    God bless you.

    • @MayankSingh-wd6zq
      @MayankSingh-wd6zq 3 года назад

      Hey, is this whole python tutorial is good for data science??? I mean do we need all this topics to get started with data science, plz tell me i m begginer.

  • @apper2112
    @apper2112 6 лет назад +3

    The one and only perfect tutorial on regex. Thanks again Corey!

  • @quyenscc
    @quyenscc 2 года назад

    Amazing!!! I have been struggling for days with learning material from my university and other document on the internet until I found your video. Thanks a lot. You are simply amazing with your style of teaching.

  • @andreaxue376
    @andreaxue376 6 лет назад +1

    Thank you Corey!! You really explained things so clearly. The best Python instructor on RUclips ever!

  • @mohammadrezakarimi2400
    @mohammadrezakarimi2400 4 года назад +3

    I was so scared about RegEx before this video...
    I have seen lot's of python videos over the internet (especially RUclips) and I can say you are the best and your tutorials are unique and awesome
    thanks a lot :)

  • @Pillez0
    @Pillez0 3 года назад +6

    This is a masterpiece, you're the greatest teacher I've found on youtube Corey. Thank you very much!

    • @janusztarnowski115
      @janusztarnowski115 2 года назад

      fajn cood is on ruclips.net/video/CMcEw_GT82g/видео.html

  • @madjayhawk
    @madjayhawk 5 лет назад +1

    Brilliant work. This should be an example of how to teach anything on RUclips. Clear, concise, organized, and useful. When done, just ask yourself whether you now understand Regular Expressions. I am going to go try all this stuff out while it is fresh.

  • @yaz_ibra22
    @yaz_ibra22 4 года назад +1

    I thought I would never be able to understand what Regex is , until I found this video I don't know how to thank you enough but your way of explaining is priceless.

  • @shyamlohar1996
    @shyamlohar1996 6 лет назад +63

    Was searching for this *_*
    And I got notified that Corey uploaded new video on re module 😎 my search ends here. Liked before viewing it.

  • @NaachoElegante
    @NaachoElegante 5 лет назад +6

    You are gem as a teacher, i wish i could learn the skill of teaching from you. Everything is just excellent. Regarding RegEx, i always skipped or hated to go through this topic but you made it hell lot of easy for all of us. Those who aren't aware of you, are actually missing out some good stuff. Thanks a ton for creating such videos with such precision, would request you to create some on DS and algorithms, it will be a big help for people like me :) who never understood complexity or Big O concepts :( just like RegEx.

  • @nurshah816
    @nurshah816 5 лет назад +1

    Regex always hard for me, I would like to give you a HUGE thanks for breaking all expression piece by piece. Learned a lot. Appreciate your all hard workings, looking forward to your Advanced Regex video.

  • @batataoussama6666
    @batataoussama6666 3 года назад

    the best tutorail on youtube : simple, clear and precise !!!
    Thanks lots.
    Good luck for the next.

  • @rickyricardo75
    @rickyricardo75 4 года назад +3

    Fantastic job!!! I don't have a programming background but I understood every single piece of code. Much better than these guys in Coursera, EDX, etc !!

  • @dchandolia
    @dchandolia 6 лет назад +16

    Best Tutorial on Regex

  • @anamitrasingha6362
    @anamitrasingha6362 2 года назад

    Thank you so so much for this video! I tried reading the docs but it confused me all over, I'm so thankful that your videos exist on youtube for free.

  • @mathwithruben
    @mathwithruben 3 года назад +1

    Exceptional! Thanks very much. I have watched approximately all your videos dealing with Python and I am amazed. It doesn't matter how long your videos are I can't get tired or sth like that.

  • @lenryan1985again
    @lenryan1985again 5 лет назад +3

    Thanks very much for the video. I find your videos very helpful . I had started to give up on learning programming but you have made me want to stay at it. Thanks a million

  • @amitbuch
    @amitbuch 4 года назад +3

    Best intro on Regex ever :-) Kudos.

  • @Asparuh.Emilov
    @Asparuh.Emilov 2 года назад

    The way you organize your explanations make things so simple and easy to understand!!! You are just my favorite Python Teacher!!! Thank you for your great videos!!!

  • @conradlewis516
    @conradlewis516 5 лет назад +1

    Most understandable video I have watched on REGEX in general. Upvoted and Subscribed! Great work!

  • @rakilachraf391
    @rakilachraf391 5 лет назад +4

    thank you so much Mr Corey , from now on I'm considering you a very valuable asset :)

  • @rockeyvalley
    @rockeyvalley 4 года назад +3

    Great video. i was clueless just trying to read about re on my own.

  • @Yasharvl
    @Yasharvl 4 года назад +1

    Long live and prosper Corey!
    I watch your videos to understand the most difficult subjects that I fail to comprehend on other self-learning platforms.

  • @bhushanhiwase121
    @bhushanhiwase121 4 года назад +1

    Your videos are great. I got to learn soo much about Regular Expressions in less than an hour. Please keep on making such videos and Thank you soo much, Corey, for such amazing tutorials.

  • @Abhinav-ui7rc
    @Abhinav-ui7rc 6 лет назад +3

    I m keenly looking for advanced features video for Regex. You are the best teacher.

  • @curiousbit9228
    @curiousbit9228 4 года назад +3

    Corey, You are My Rockstar Programmer!!!

  • @obinnavitalis5972
    @obinnavitalis5972 6 месяцев назад +2

    Your videos are my first go-to on topics I found to be complex. Thank you Corey for these mind-blowing contents.

  • @patobrien2329
    @patobrien2329 3 года назад +1

    Impeccable is the word for your way of teaching. You excel in the preparation and execution of your tutorial. None better !

  • @EnglishRain
    @EnglishRain 4 года назад +121

    46:16 - if you're coming from the previous Regexp video, start from here to skip all the things already explained in the previous video.
    43:00 - Start from here to see how groups are implemented in Python

    • @alice_hml
      @alice_hml 3 года назад +3

      Thanks!

    • @EnglishRain
      @EnglishRain 3 года назад

      @@alice_hml No sweat! :)

    • @Nekatho
      @Nekatho 3 года назад +7

      damn it, i just see this when i finish the video

    • @alfredsfutterkiste7534
      @alfredsfutterkiste7534 3 года назад +1

      thanks mate glad I scrolled down :) there's a part in there about reading file contents as well but that's rather obvious if you know how to read in files in python and use regex to parse their contents.

    • @panagiotisgoulas8539
      @panagiotisgoulas8539 3 года назад +6

      Actually watch the first 7 minutes on start and skip to 43:00

  • @abdulkarimabdulwahab7135
    @abdulkarimabdulwahab7135 4 года назад +11

    At some point, I thought to myself: is this really a free video or a paid course?
    RegEx had given me sleepless nights. Articles I'd read kept confusing me with various weird combinations. Until I found this video.
    I'm over delighted.
    Thanks a bunch.
    Now I'm pretty confident reading those articles of RegEx that caused me headaches before.😊😜😂

  • @muhammedpatel9805
    @muhammedpatel9805 5 лет назад +2

    What a great video, I got all my concepts cleared in just half an hour. Python Documentation is so confusing. Thanks a lot !!!!!

  • @princerawat7001
    @princerawat7001 3 года назад

    Thank you so much for these videos, man. Started in morning at 10 and now it is close 5 in evening. So happy to have completed the video with complete understanding.
    For anyone coming to comment section before watching the video, go ahead and watch this video. Such an irony that I am currently taking a course at coursera and after listening to the RE lecture there I came to Corey's channel to understand it.
    Talking about RE, take your time and make sure that you know what each line is doing. Although the video is just one hour long, it took me 3 hours to complete it because I was doing it alongside on Jupyter and did lot of rewinds. Highly recommend doing it alongside Corey.
    Best wishes to Corey and everyone!

  • @hasanfares5774
    @hasanfares5774 6 лет назад +3

    as usual best explained by you, you should really consider getting making your own courses on edx, coursera, ... You can really teach better than most of the profs there. Thanks for all the effort and energy you put in these tutorials, keep it up bro

    • @coreyms
      @coreyms  6 лет назад +2

      Thanks, I appreciate that!

  • @yusufsalk1136
    @yusufsalk1136 4 года назад +3

    Absolutely! "It is pretty fu\w{5} powerful." 16:16

  • @brianhu6277
    @brianhu6277 5 лет назад +2

    Actually a really good teacher. I did not expect this quality.

  • @hrutikajare113
    @hrutikajare113 2 года назад

    the best video on RE watched ever...literally I watched many videos and tutorials on RE but this is what exactly I want...lots of thanks🙂 and support

  • @psk_1998
    @psk_1998 5 лет назад +3

    You need to be more famous

  • @greob
    @greob 6 лет назад +20

    I don't think there's a better teacher than Corey on the entire Internet.
    I hope one day he will end up teaching reverse-engineering with disassemblers or low level programming in Assembly.
    just kidding. Keep up the good work! ;-)

  • @amrita7444
    @amrita7444 2 года назад

    Corey, I am so grateful to you, you are the best. I wasted money to learn python, but your videos taught a lot more and easy to understand. Thanks a lot. I always recommend your videos to my friends.

  • @stevenan93
    @stevenan93 3 года назад

    This tutorial is complete, comprehensive. It really captures the Regular Expressions experience.

  • @asad9377
    @asad9377 4 года назад +6

    Hi what will be the regular expression code if we want to extract the full names from the data.txt file

  • @yomajo
    @yomajo 4 года назад +3

    This is incredible, but one thing is missing: when students come back for specific parts, timestamps would be invaluable!

  • @ZooperPlayz
    @ZooperPlayz 3 года назад

    You bring the potential of any API/Tool really quick and your content is to-the-point and also very immersive. Keep up the great work!

  • @mandylover901
    @mandylover901 3 года назад

    Huge thanks. You're probably one of the best teachers of Python on RUclips - if not the best. More power to you!

  • @labiodnzm5733
    @labiodnzm5733 4 года назад +69

    one word to describe this : r'(wow)+'

    • @aka5
      @aka5 3 года назад +3

      wowwowwowwow

    • @aka5
      @aka5 3 года назад +6

      I prefer r'w(ow)+' ;-)

    • @ArikLikesWolves
      @ArikLikesWolves 3 года назад +3

      @@aka5 its all about the r'wo+w' :)

    • @MayankSingh-wd6zq
      @MayankSingh-wd6zq 3 года назад +1

      Hey, is this whole python tutorial is good for data science??? I mean do we need all this topics to get started with data science, plz tell me i m begginer.

    • @worldofmusic1058
      @worldofmusic1058 3 года назад

      @@MayankSingh-wd6zq yes it will definitely help, whole of the data science is in some way or other based on regex and OOP!

  • @utomocalvin
    @utomocalvin 4 года назад +9

    When matching email regex, why use '[a-zA-Z0-9-.]+' instead of '[\w-.]+' ?

  • @danielspector9280
    @danielspector9280 3 года назад +1

    I searched across the 7 seas of the internet.
    But I couldn't find any better tutorial in the internet. Cheers Corey

  • @RandomShowerThoughts
    @RandomShowerThoughts 5 лет назад +2

    this man is the goat. I went from hating regular expressions to learning them after this video

  • @yxngboypolo
    @yxngboypolo 3 года назад +3

    bro, I'm starting to realize that regex could've saved me so much time. All the coding spent using if states to make sure syntax was correct. I could cry

  • @ravichandrank5182
    @ravichandrank5182 6 лет назад +48

    Corey can you teach us django framework please

    • @arunsaivemula1300
      @arunsaivemula1300 6 лет назад +6

      even i am waiting for his django tutorials... please corey do some videos on django framework

    • @ravichandrank5182
      @ravichandrank5182 6 лет назад +11

      He is very good at teaching, I have never seen this much clear definition in explaining a concept better than Corey 🙏 thanks for your works ✌👍

    • @hultramann8107
      @hultramann8107 6 лет назад

      Here is a free tutorial, ruclips.net/video/yDv5FIAeyoY/видео.html
      but Are Schafer's python videos enough-learning to later learn Try Django 1.11?

  • @himankjain8259
    @himankjain8259 3 месяца назад

    I have been struggling to understand this topic for a long time. This video made all the basics really easy to understand. Thanks Corey.

  • @nikhilkumar-jv5ho
    @nikhilkumar-jv5ho Год назад

    I'm not gonna lie, this is the first programming channel I subscribed to for over an year. Excellent content. Thanks !

  • @Lowzenza4
    @Lowzenza4 6 лет назад +3

    Wait, why was 'abc' not indexed as 0-3? Does the string index in this case start at 1??

    • @coreyms
      @coreyms  6 лет назад +1

      It starts at 0, but there is a newline character before "abc". I put that in so the text would be easier to read.

    • @Lowzenza4
      @Lowzenza4 6 лет назад

      Ah yes! Always the most basic things I overlook!

    • @Tayyabloverobotics
      @Tayyabloverobotics 6 лет назад

      I was also wondering when I include the '0' why it's getting on the new line. So update my knowledge that newline is also a character. Thanks for the videos and explanations in the comments like these. You are a great source for python, I avoid videos for Python but I need to, every time I look for yours.

  • @rodongo5221
    @rodongo5221 5 лет назад +1

    You helped me a lot. I used to fear regular expressions but no more. Hats off Corey!

  • @Bharath_Kumar234
    @Bharath_Kumar234 5 лет назад +2

    This is the best video on regular expression I have even seen. Awesome!!!

  • @darrengreene7471
    @darrengreene7471 9 месяцев назад +2

    Hand down, one of the best Python tutorials. Thanks Corey!