Regular Expression Tutorial Python | Python Regex Tutorial
Regular expression python tutorial. I will take a real life example of extracting information out of tesla's company filing and show you how you can use regular expression in python to extract some of the required information easily.
Code: github.com/codebasics/py/blob...
Exercise: github.com/codebasics/py/blob...
⭐️ Timestamps ⭐️
00:00 Introduction
00:32 Coding
24:34 Exercise
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
🌎 Website: codebasics.io/
🎥 Codebasics Hindi channel: / @codebasicshindi
#️⃣ Social Media #️⃣
🔗 Discord: / discord
📸 Instagram: / codebasicshub
🔊 Facebook: / codebasicshub
📱 Twitter: / codebasicshub
📝 Linkedin (Personal): / dhavalsays
📝 Linkedin (Codebasics): / codebasics
🔗 Patreon: www.patreon.com/codebasics?fa...
❗❗ DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.
Пікірлер: 125
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
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!
@codebasics
2 жыл бұрын
Happy to help Prateek!
@sakalagamingyt3563
Ай бұрын
Same bro
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.
the smoothest regex explanation i've ever watched. thank you so much
This is the best regex tutorial I have seen so far. Thank you Dhaval.
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
Finally a clear explanation of this topic. Thanks!!’
Thank you so much for this. I was getting confuse in a code, but youade it clear. :)
Such simplified way to explain regex.. This really helped
best regex tutorial i found, thank you for your work!
What a beautiful explanation, loved it. regex were always scary but seems like i can try my hands on it.
I just wanna say I have no words, never saw such kind of explanantion! Thank you so much sir
Before codebasics video people scare regex but after this video all codebasics subscribers love regex..Thanks sir:)
Best video on Regex!! Thank you so much!!
Extremely useful and clear exposition. Thanks
Your tutorials are the best always well explained and with real life examples
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👍👍
This is the best video on regex on the entire KZread Seriously! I used to be scared of Regx before but now I no longer have to be afraid of Regex
Thankyou Dhaval Sir! Really helpful!
Thanks a lot , landed after watching code with Harry playlist to solve his exercise got stuck . He is also a great teacher.
I completed the exercises, thanks man!🙏
Thank you very much sir, for such a awesome video. Your way of teaching make everything easy. :)
I love this! I don't know why I thought regex is so complex 🤦🏽♀️ Thank you so much.
@codebasics
2 жыл бұрын
Happy to help Emma!
Brilliant video, 2 week of me struggling to understand regex, NOW ITS OVER YEAH! Thankyou so much, pls have a pleasent and great life🎉
Maja aavi gai...boss.. Aabhar🙏
thank u sir really important lesson. will allow me to brush up on this skill!
Thank you sir for creating this video!!! you really save me for getting lost in this subject
wonderful way to learn regex. Awesome try.
Beautifully explained!
thank you so much, your teaching is the best. good luck
impressive ❤️❤️❤️❤️.. thank you very much sir , that i was looking for ...
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.
Awesome waiting for this 😊
Such a wonderful explanation .😊
Thanks alot..I was confused earlier..Gonna try this..I loved your teaching :)
Broke it down beautifully
Thanks for sharing this.. So much helpful to All..
Excellent tutorial Dhaval.
Can't wait boss!
Thanks Dhaval, it helps a lot.
This is gona be so fruitful 👍 looking forward for regex playlist
@codebasics
2 жыл бұрын
Enjoy!
Tons of thanks to you bro this video helped me alotttttt
Great explanation! Thkx!
Surely waiting for this one
Woww Tutorial... Thank You!!
i've never liked regular expressions in my life now i do !
I did understand your explanation it’s very complex
Great video! Thanks
Thanks for making this video. very useful and more informative.
@codebasics
2 жыл бұрын
Glad you liked it
very useful , thank you 😍
Thank You sir for this tutorial
Best RE explanation ever
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
2 жыл бұрын
Vinay I am glad you found it useful
@sumit121285
2 жыл бұрын
Same felling had with me Vinay , but after watching this video it's all brushed up....
Sir this is more than perfect, Your teaching is outclass 👍
@codebasics
Жыл бұрын
thanks for your kind words Shafiq 👍🙏
Reallly nice presentation
Thank you so much for this.
GREAT JOB!!
Superb Tutorial.
Thank you so much!
Thank you sir, "the last statements were funny"🤣, you are very good
Loved It.
Great video sir 🙏
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
2 жыл бұрын
ha ha ... Thanks for your kind words Sumit
Awesome Video
thank you so match man
Fucckkk.. Yess mann.. This is what I am looking for a long time.. Thanx mannn
Thank you♥️
Amazing video
One of my best tutors on KZread
@codebasics
2 жыл бұрын
:) thanks for your kind words Freedmore
@ambaradhikari7425
2 жыл бұрын
@@codebasics please give the solution of last exercise
Very helpfull
Thank you so much what a beautiful way to teach , keep the good work coming
@codebasics
2 жыл бұрын
Thank you, I will
@Lifeexperience-rh6og
Ай бұрын
But sir if we use voyant tool
Thanks so much
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?
amazing :D
You are a god to me.
Thanks alot
you are amazing
Waiting g for data engineering playlist ji🤩
Love u bro
God bless you
Waiting
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?
@codebasics
2 жыл бұрын
yes.
How to practice ml?. I'm unable to make project (so many mistakes in making projects) I'm demotivating so guide me 🙏 plz
What if you wanted to extract the text and not the title? What would you recommend? Somebody please help! Thank you!
lol i like the panda plushie 🐼🐼
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
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
Жыл бұрын
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!
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
bro ending, lol
Hi sir! I need ur kind guidance for my project. Will u kindly help me....
fire🤣🤣🤣🤣🤣
"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?
My delimeter is '' in CSV file, how do I apply regex when reading csv?
can you write a code to get content which is between two ,word1 and word2 for eg: anything ...word1 ....content....word2..angthing.
pattern='Note \d - ([^ ]+)' re.findall(pattern,text) this expression is not working now, idk why, and what to fix in this?? can anyone help?
That title pattern didn't worked for me. Please help only 'Note•\d•' has matching pattern
Do search on any PDF work on regular expression
Something could have been explained in starting what is \d etc for beginners for those who don’t know anything about regex
Bro if degree need to get a job for ai or ml engineer
@devloper_hs
2 жыл бұрын
sadly yes, but sometime knowledge and experience wins
10