Regular Expression Tutorial Python | Python Regex Tutorial

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

КОМЕНТАРІ • 127

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

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

  • @prateekbansal8302
    @prateekbansal8302 2 роки тому +44

    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!

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

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

  • @saubhiksom
    @saubhiksom 2 роки тому +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.

  • @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?

  • @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!

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

    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  2 роки тому +2

      Vinay I am glad you found it useful

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

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

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

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

  • @shahriarshaikat6876
    @shahriarshaikat6876 11 місяців тому +1

    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👍👍

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

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

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

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

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

  • @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!

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

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

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

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

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

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

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

  • @acc.7953
    @acc.7953 2 роки тому

    saaar my computer hack saaar halp meeee i see solutian and my computer got viruses as you said haalp

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

    Maja aavi gai...boss..
    Aabhar🙏

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

    Waiting g for data engineering playlist ji🤩

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

    I did not watch till the end of this video and now I have to buy a new laptop.

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

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

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

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

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

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

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

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

  • @Ifian23
    @Ifian23 4 місяці тому

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

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

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

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

    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

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

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

  • @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 2 місяці тому

      '-' 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

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

    Do search on any PDF work on regular expression

  • @pankajyadav-sz4mr
    @pankajyadav-sz4mr Рік тому

    Why /not used for - I was expecting you will write slash hifan but you did not why?

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

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

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

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

  • @sakalagamingyt3563
    @sakalagamingyt3563 4 місяці тому

    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

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

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

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

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

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

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

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

  • @MelikaSadatMirdamadi
    @MelikaSadatMirdamadi 2 місяці тому

    very useful , thank you 😍

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

    I did understand your explanation it’s very complex

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

    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?

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

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

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

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

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

    Anyone did the last exercise?

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

    lol i like the panda plushie 🐼🐼

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

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

  • @Matrix_Mayhem
    @Matrix_Mayhem 4 місяці тому

    Thankyou Dhaval Sir! Really helpful!

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

    Tons of thanks to you bro this video helped me alotttttt

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

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

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

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

  • @tejesh64
    @tejesh64 4 місяці тому

    I though it was a ad

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

    Such a wonderful explanation .😊

  • @Loicmartins
    @Loicmartins 10 місяців тому

    Thank you so much!

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

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

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

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

    I completed the exercises, thanks man!🙏

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

    thank you so match man

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

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

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

    Woww Tutorial... Thank You!!

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

    You are a god to me.

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

    wonderful way to learn regex. Awesome try.

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

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

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

    Such simplified way to explain regex.. This really helped

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

    Thanks so much

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

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

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

    Amazing video

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

    Extremely useful and clear exposition. Thanks

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

    Broke it down beautifully

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

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

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

    you are amazing

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

    Thanks Dhaval, it helps a lot.

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

    bro ending, lol

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

    Thank you♥️

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

    Thank You sir for this tutorial

  • @Cyber_realm
    @Cyber_realm 10 місяців тому

    thanks a lot

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

    Awesome Video

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

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

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

    God bless you

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

    Thank you so much for this.

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

    Excellent tutorial Dhaval.

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

    Very helpfull

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

    Thanks alot

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

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

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

      thanks for your kind words Shafiq 👍🙏

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

    fire🤣🤣🤣🤣🤣

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

    amazing :D

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

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

    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  2 роки тому

      ha ha ... Thanks for your kind words Sumit

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

    Surely waiting for this one

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

    Great explanation! Thkx!

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

    Great video! Thanks

  • @arpitakar3384
    @arpitakar3384 12 днів тому

    My new laptop just goes on FIRE

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

    How can we find 101 from 1101011?

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

    Reallly nice presentation

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

    Best RE explanation ever

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

    Superb Tutorial.

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

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

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

    Awesome waiting for this 😊

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

    Beautifully explained!

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

    10