Regular Expression Tutorial Python | Python Regex Tutorial

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 128

  • @codebasics
    @codebasics  2 роки тому +5

    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.

  • @prateekbansal8302
    @prateekbansal8302 3 роки тому +49

    Thank you so much for this video! Honestly I used to be scared of regex. Now, not so much anymore. Sir, you’re a real gem!

  • @NamidigerPicue
    @NamidigerPicue 2 роки тому +2

    the smoothest regex explanation i've ever watched. thank you so much

  • @detacreations1999
    @detacreations1999 2 роки тому +1

    Before codebasics video people scare regex but after this video all codebasics subscribers love regex..Thanks sir:)

  • @sakalagamingyt3563
    @sakalagamingyt3563 7 місяців тому +1

    This is the best video on regex on the entire UA-cam Seriously! I used to be scared of Regx before but now I no longer have to be afraid of Regex

  • @saubhiksom
    @saubhiksom 3 роки тому +11

    Thank you so much Dhaval for this session. I was literally waiting for someone to teach regex like this. Not only in data science even in Bioinformatics and genomics regex is a very very useful module.

  • @emmamargaret2908
    @emmamargaret2908 2 роки тому +3

    I love this!
    I don't know why I thought regex is so complex 🤦🏽‍♀️
    Thank you so much.

  • @aakashpatel6191
    @aakashpatel6191 2 роки тому +1

    Maja aavi gai...boss..
    Aabhar🙏

  • @akashrajendraprasad3717
    @akashrajendraprasad3717 Рік тому

    I just wanna say I have no words, never saw such kind of explanantion! Thank you so much sir

  • @kapamagicman
    @kapamagicman 3 роки тому +1

    Finally a clear explanation of this topic. Thanks!!’

  • @shahriarshaikat6876
    @shahriarshaikat6876 Рік тому +2

    So much information about regular expression, I have found in this tutorial.
    The main thing i want to notice that this tutorial will help you that ,how to think before writing an expression👍👍

  • @srd8302
    @srd8302 2 роки тому

    This is the best regex tutorial I have seen so far. Thank you Dhaval.

  • @Ifian23
    @Ifian23 7 місяців тому

    Brilliant video, 2 week of me struggling to understand regex, NOW ITS OVER YEAH! Thankyou so much, pls have a pleasent and great life🎉

  • @Matrix_Mayhem
    @Matrix_Mayhem 7 місяців тому

    Thankyou Dhaval Sir! Really helpful!

  • @soorya_ks
    @soorya_ks Рік тому

    Best video on Regex!! Thank you so much!!

  • @freedmoresidume
    @freedmoresidume 3 роки тому

    One of my best tutors on UA-cam

    • @codebasics
      @codebasics  3 роки тому

      :) thanks for your kind words Freedmore

    • @ambaradhikari7425
      @ambaradhikari7425 2 роки тому

      @@codebasics please give the solution of last exercise

  • @ilhemwalker9145
    @ilhemwalker9145 10 місяців тому +1

    i've never liked regular expressions in my life now i do !

  • @raghuvamsiyaram7248
    @raghuvamsiyaram7248 Рік тому

    Excellent tutorial Dhaval.

  • @vinayraghunath1992
    @vinayraghunath1992 3 роки тому +4

    Thankyou sir... This session was really good... I always had a feeling that regex is something that I will never get a grip on... Thanks for your tips

    • @codebasics
      @codebasics  3 роки тому +2

      Vinay I am glad you found it useful

    • @sumit121285
      @sumit121285 3 роки тому

      Same felling had with me Vinay , but after watching this video it's all brushed up....

  • @sumit121285
    @sumit121285 3 роки тому

    You are simply amazing sir...
    Just one thought is coming in my mind ,
    " Agar aap nahi hote to hamara kya hota ? "
    Thankyou , thankyou so much sir ....
    I had really taken lots of efforts to understand regular expression module , but never found such a nice explanation.....
    Thanks again & again .....

    • @codebasics
      @codebasics  3 роки тому

      ha ha ... Thanks for your kind words Sumit

  • @mklim4509
    @mklim4509 Рік тому

    Thank you sir for creating this video!!! you really save me for getting lost in this subject

  • @poppinschibuike1737
    @poppinschibuike1737 2 роки тому

    Broke it down beautifully

  • @shreyapaurav5930
    @shreyapaurav5930 3 роки тому

    Such simplified way to explain regex.. This really helped

  • @shafiqshams3065
    @shafiqshams3065 2 роки тому

    Sir this is more than perfect, Your teaching is outclass 👍

    • @codebasics
      @codebasics  2 роки тому +1

      thanks for your kind words Shafiq 👍🙏

  • @talhanisarmughal
    @talhanisarmughal 2 роки тому

    I was facing problems with regular expressions before watching this video, But now I have solved my assignment on my own after watching this single video, Thanks a lot sir for such amazing educational videos. Love from Pakistan

  • @dorherbesman1751
    @dorherbesman1751 2 роки тому

    best regex tutorial i found, thank you for your work!

  • @Shubham-Singh-Rajput25
    @Shubham-Singh-Rajput25 3 роки тому +3

    This is gona be so fruitful 👍 looking forward for regex playlist

  • @Yogesh010Mishra
    @Yogesh010Mishra Рік тому

    Beautifully explained!

  • @Susanajoan3k
    @Susanajoan3k Рік тому

    I completed the exercises, thanks man!🙏

  • @vipulsemwal478
    @vipulsemwal478 2 роки тому +1

    Thank you so much for this. I was getting confuse in a code, but youade it clear. :)

  • @mukeshkumaryadav350
    @mukeshkumaryadav350 2 роки тому

    Thanks a lot , landed after watching code with Harry playlist to solve his exercise got stuck . He is also a great teacher.

  • @MegaJohnwesly
    @MegaJohnwesly Рік тому

    Thanks alot..I was confused earlier..Gonna try this..I loved your teaching :)

  • @sagarmehla2102
    @sagarmehla2102 2 роки тому

    wonderful way to learn regex. Awesome try.

  • @sumitpandey6174
    @sumitpandey6174 3 роки тому

    Best RE explanation ever

  • @suleymanerim2119
    @suleymanerim2119 2 роки тому

    Thanks Dhaval, it helps a lot.

  • @Frdy12345
    @Frdy12345 3 роки тому

    Extremely useful and clear exposition. Thanks

  • @MrChber
    @MrChber 3 роки тому

    Awesome waiting for this 😊

  • @muhammedthayyib9202
    @muhammedthayyib9202 2 роки тому

    Reallly nice presentation

  • @deepali2157
    @deepali2157 2 роки тому

    Woww Tutorial... Thank You!!

  • @AIdevel
    @AIdevel 2 роки тому

    I did understand your explanation it’s very complex

  • @nastaran1010
    @nastaran1010 Рік тому

    thank you so much, your teaching is the best. good luck

  • @solomonodelola-jg7lg
    @solomonodelola-jg7lg 6 місяців тому

    Thank you sir, "the last statements were funny"🤣, you are very good

  • @MelikaSadatMirdamadi
    @MelikaSadatMirdamadi 5 місяців тому

    very useful , thank you 😍

  • @zulucharlie5244
    @zulucharlie5244 Рік тому

    You are a very very good teacher, and your videos on this and other subjects are an enormously positive contribution to the world. Thank you.

  • @chitrabhardwaj7292
    @chitrabhardwaj7292 2 роки тому

    What a beautiful explanation, loved it. regex were always scary but seems like i can try my hands on it.

  • @frankservant5754
    @frankservant5754 2 роки тому

    Your tutorials are the best always well explained and with real life examples

  • @niranjanbalajisingh6726
    @niranjanbalajisingh6726 2 роки тому

    Tons of thanks to you bro this video helped me alotttttt

  • @nikhildesai2460
    @nikhildesai2460 3 роки тому

    Thanks for sharing this.. So much helpful to All..

  • @abhi9029
    @abhi9029 2 роки тому

    Superb Tutorial.

  • @MadhurimaPaul-kl2yd
    @MadhurimaPaul-kl2yd Рік тому

    Thank You sir for this tutorial

  • @Dope619
    @Dope619 3 роки тому

    Surely waiting for this one

  • @naveenmallampati3294
    @naveenmallampati3294 3 роки тому

    Fucckkk.. Yess mann.. This is what I am looking for a long time.. Thanx mannn

  • @soumyaranjan7474
    @soumyaranjan7474 2 роки тому

    Such a wonderful explanation .😊

  • @PicklePops
    @PicklePops 2 роки тому

    GREAT JOB!!

  • @redroom07
    @redroom07 3 роки тому

    impressive ❤️❤️❤️❤️.. thank you very much sir , that i was looking for ...

  • @avi8016
    @avi8016 3 роки тому

    Great video sir 🙏

  • @realninja357
    @realninja357 3 роки тому

    thank u sir really important lesson. will allow me to brush up on this skill!

  • @marcelocipriano5985
    @marcelocipriano5985 3 роки тому

    Great explanation! Thkx!

  • @moganas3232
    @moganas3232 3 роки тому +1

    Waiting g for data engineering playlist ji🤩

  • @mohsenqureshi6318
    @mohsenqureshi6318 3 роки тому

    Great video! Thanks

  • @deepasri9698
    @deepasri9698 2 роки тому

    Thanks for making this video. very useful and more informative.

  • @bhaveshvaishnav633
    @bhaveshvaishnav633 Рік тому

    Awesome Video

  • @ArunKumar-yb2jn
    @ArunKumar-yb2jn 3 роки тому

    Can't wait boss!

  • @krishnadhakal5246
    @krishnadhakal5246 2 роки тому

    Thank you so much for this.

  • @RdmYoutubePeas
    @RdmYoutubePeas 2 роки тому +1

    can someone explain to me though, in minute 11:00, he used ^
    which is newline, i dont quite get the reason why he use newline so can someone explain it to me? Also why not opted for [\w* or [.*]? Otherwise, this is a great regex tutorial!

    • @Carnivorous-Vegan
      @Carnivorous-Vegan 2 роки тому

      At the time, he was just giving examples of using negated character-sets/classes.
      So he used [^
      ]* as a way of preventing your match from spanning more than 1-line.
      So yes, .* would have sufficed, but note that [.*] only matches 'periods' or 'asterisks'.
      I agree, fantastic tutorial!

  • @my_day_my_day
    @my_day_my_day Рік тому

    Amazing video

  • @sridharpalla5612
    @sridharpalla5612 2 роки тому

    You are a god to me.

  • @carltondaniel8966
    @carltondaniel8966 2 роки тому

    Thank you so much what a beautiful way to teach , keep the good work coming

  • @prabhakar664
    @prabhakar664 3 роки тому

    Loved It.

  • @RahulSingh-1
    @RahulSingh-1 2 місяці тому

    That was great

  • @younessaznag470
    @younessaznag470 2 роки тому

    thank you so match man

  • @shadiyapp5552
    @shadiyapp5552 2 роки тому

    Thank you♥️

  • @trayambrathore7735
    @trayambrathore7735 2 роки тому

    Very helpfull

  • @UpendraKumar-zc8lm
    @UpendraKumar-zc8lm 3 роки тому

    Thank you very much sir, for such a awesome video. Your way of teaching make everything easy. :)

  • @user-xy2ly4uz6p
    @user-xy2ly4uz6p 2 роки тому +1

    What if you wanted to extract the text and not the title? What would you recommend?
    Somebody please help!
    Thank you!

  • @kunalrawat4448
    @kunalrawat4448 3 роки тому +2

    How to practice ml?.
    I'm unable to make project (so many mistakes in making projects) I'm demotivating so guide me 🙏 plz

  • @syedmuhammadrafay228
    @syedmuhammadrafay228 11 місяців тому

    Thanks so much

  • @utkarshx27
    @utkarshx27 2 роки тому

    you are amazing

  • @CEExpansions
    @CEExpansions 2 роки тому +1

    Thanks for this tutorial. Awesome and simplified. You arreted my regexphobia lolz.... Please can the same regex syntax be used for google forms regex and other rexex scripts?

  • @MukeshYadav-wb5uo
    @MukeshYadav-wb5uo 2 роки тому

    Thanks alot

  • @krishshah3974
    @krishshah3974 2 роки тому

    amazing :D

  • @dilkashgazala831
    @dilkashgazala831 2 роки тому

    Hello Sir thank you so much for this video. But I am really struggling how to find a exact match for example I have a pattern like "Note 8". How should I write a regular expression for it. Please please help me

  • @sakshikelshikar3729
    @sakshikelshikar3729 2 роки тому

    God bless you

  • @b1ackwollf
    @b1ackwollf 2 роки тому

    lol i like the panda plushie 🐼🐼

  • @technicalways2368
    @technicalways2368 Рік тому

    Hi actually I have regex Your Orcle instance not running I need to select only Orcle but if the instance is not is there then select oracle so how to do

  • @studentportal3524
    @studentportal3524 2 роки тому

    Hi sir!
    I need ur kind guidance for my project. Will u kindly help me....

  • @bunnyvlogs7647
    @bunnyvlogs7647 3 роки тому

    Love u bro

  • @devloper_hs
    @devloper_hs 3 роки тому

    Thanks a lot; great explainer straightforwardly; you are meant to simplify complex topics, always refer to your vids.
    However, can u explain the most common re-expression one needs to use in the industry? I mean re any topics to cover?

  • @waisyousofi9139
    @waisyousofi9139 2 роки тому

    can you write a code to get content which is between two ,word1 and word2
    for eg:
    anything ...word1 ....content....word2..angthing.

  • @saubhiksom
    @saubhiksom 3 роки тому

    "NM_001111031.2 Homo sapiens activin A receptor type 1C (ACVR1C), transcript variant 2, mRNA"
    Hi! In this string I want to match everything from Homo till the comma. I have written the following code in regex:
    Homo sapiens ([^, transcript variant]*)
    However, it's only matching Homo sapiens but not the other things? The problem is regex is not taking ", transcript variant" as a whole string.
    Can anyone help me please?

  • @kirubababu9255
    @kirubababu9255 2 роки тому

    My delimeter is '' in CSV file, how do I apply regex when reading csv?

  • @sharmeenkhanam2924
    @sharmeenkhanam2924 Рік тому

    That title pattern didn't worked for me.
    Please help only 'Note•\d•' has matching pattern

  • @saurabhbarasiya4721
    @saurabhbarasiya4721 3 роки тому

    Waiting

  • @rohandevaki4349
    @rohandevaki4349 Рік тому

    pattern='Note \d - ([^
    ]+)'
    re.findall(pattern,text)
    this expression is not working now, idk why, and what to fix in this?? can anyone help?

    • @mangaldasgaonkar568
      @mangaldasgaonkar568 5 місяців тому

      '-' This is the dash. When I also used it, I got an error, and then I found out that this is the dash - that we are using but we have to use en dash which is similar like dash and in windows laptop shortcut is to press 'alt+ 0150' then press enter and you should have numerical keypad for this

  • @jojothomas6656
    @jojothomas6656 3 роки тому

    Bro if degree need to get a job for ai or ml engineer

    • @devloper_hs
      @devloper_hs 3 роки тому

      sadly yes, but sometime knowledge and experience wins

  • @Theflyinggeek
    @Theflyinggeek 9 місяців тому

    Something could have been explained in starting what is \d etc for beginners for those who don’t know anything about regex

  • @akashm1027
    @akashm1027 2 роки тому

    bro ending, lol

  • @jayaraavi
    @jayaraavi 2 роки тому

    How can we find 101 from 1101011?

  • @NickMaverick4
    @NickMaverick4 Рік тому

    Do search on any PDF work on regular expression

  • @calebarodu2245
    @calebarodu2245 2 роки тому

    fire🤣🤣🤣🤣🤣