Regular Expressions (Regex) Tutorial: How to Match Any Pattern of Text

  Рет қаралды 1,294,706

Corey Schafer

Corey Schafer

Күн бұрын

Пікірлер: 1 900
@andresvodopivec5950
@andresvodopivec5950 6 жыл бұрын
Whenever I see talented people like you giving perfect explanations I feel confident to say: things are not difficult, just badly explain. Thanks to you I was able to FINALLY understand regex and actually start looking at it very friendly. THANKS so much!
@IvanYanev
@IvanYanev 3 жыл бұрын
I stole my reply :) Nothing more to add
@toveyashby-crashbyproducti6366
@toveyashby-crashbyproducti6366 4 жыл бұрын
I don't understand how there can be any unlikes on this. This was a life saver in trying to understand this as a newb. Thank you for opening my eyes!
@soumitripattnaik
@soumitripattnaik 6 жыл бұрын
This is really unfair to regular expressions, they are supposed to be difficult.
@sudhakarg5416
@sudhakarg5416 5 жыл бұрын
haha, yes bro. REGEX SHOULD BE DIFFICULT.....
@DC-ex9cf
@DC-ex9cf 5 жыл бұрын
so true.
@aldeen9190
@aldeen9190 5 жыл бұрын
@Roshane Johnson regex is like game of thrones
@Valnuss
@Valnuss 5 жыл бұрын
It still is for me. The examples are very basic. Try something more advanced and you will see.
@jaybestnz
@jaybestnz 5 жыл бұрын
Could not have put it better myself. I'm sure it gets harder but that was amazing
@kts1096
@kts1096 4 жыл бұрын
You sir have a gift. Same with the git tutorial, you literally upload your knowledge to my brain. Your voice as well is spot on. Quadruple thumbs up!!!!
@susheilito
@susheilito 5 жыл бұрын
Corey Schafer. You rock dude! I have been programming/managing projects/troubleshooting stuff for 18 years. I have never really learned Regex or even tried. They just bamboozled me. This one tutorial blew my mind away. BEST tutorial for REGEX ever!! Thanks
@Given_A
@Given_A 4 ай бұрын
Mr Schafer, I can't thank you enough for this tutorial. You have so simplified the regex. I liked and subscribed.
@TDM87
@TDM87 6 жыл бұрын
Great tutorial! People who are just starting out in programming, I have one tip for you. Whatever language you decide to learn, learn regular expressions basics on the side. You are going to run into them in the job environment.
@monsotal
@monsotal 4 жыл бұрын
This is clearly the best RegEx video that someone has done in the history of man kind
@pnard4130
@pnard4130 4 жыл бұрын
very explanatory video, I came here with zero knowledge about Regex and understood every part of the video. Thank you very much
@RajeshDhalange
@RajeshDhalange 5 жыл бұрын
I was hating Regex but now I started loving them. Thank you so much :)
@cliffordarokiaraj9124
@cliffordarokiaraj9124 3 жыл бұрын
4 years later, this tutorial is still very helpful for a person like myself to easily understand regex. After watching it, regex doesn't look to be too difficult to understand and follow.
@NathanYoungLibrary
@NathanYoungLibrary 6 жыл бұрын
Literally exactly what I was looking for. I hope you get a decent cut from the sponsor button.
@coreyms
@coreyms 6 жыл бұрын
Thanks! I just put up the Sponsor button yesterday, so you're actually my first one! I really appreciate that!
@NathanYoungLibrary
@NathanYoungLibrary 6 жыл бұрын
Oh awesome! I've been watching your videos for about 3 months, since I started learning Python. Incredible stuff man. (I actually tried to set up a patreon but had some weird login issues with it) I've actually been struggling figuring out how to scrape phone numbers specifically so, this was dead on.
@YounessNouni-w2f
@YounessNouni-w2f 9 ай бұрын
The world needs more people explaining CS stuff like this dude.
@rheavictor7
@rheavictor7 4 жыл бұрын
Man... I needed to pause the class to thank you. So so so much easier than I thought, I kinda had a hard time to grasp the concept, but now I'm getting how to use regex a lot better. THank you
@0004voltz
@0004voltz 5 жыл бұрын
The only Regex video you'll ever need.
@hadireg
@hadireg 2 жыл бұрын
👍👍 The best tutorial on regular expressions so far. I did all the exercises successfully without watching... all makes sense now. so the algorithm searches by every single char or group of characters then checks the grouping and/or quantifier to apply.
@oscarwang9638
@oscarwang9638 4 жыл бұрын
Best Instruction for Regex forever. This tutorial video has to be listed into CS major students' class material. Thank you for sharing the idea of Regex with awesome explanation. It 's clear to me now.
@vikramdhingra4218
@vikramdhingra4218 4 жыл бұрын
Can't thank you enough. Was struggling with regex for a while but your video made it crystal clear. Thank you so much.
@SecTechie
@SecTechie Жыл бұрын
I never even heard of any of this until I got into cybersecurity. It's really interesting and helpful. Excellent video! Thanks.
@symbol2020
@symbol2020 7 ай бұрын
You explained very well the many aspects of regex I was confused about, in particular anchors, qualifiers & groups. Great video, I learnt a lot. Thank you
@pythusiast4701
@pythusiast4701 3 жыл бұрын
Very helpful. Now for the first time in my life, I actually understood what Regex is
@EvgenyAlterman
@EvgenyAlterman 5 жыл бұрын
Thank you for this great and simple explanation. Really helped me!
@kusumneupane3316
@kusumneupane3316 3 жыл бұрын
I can't believe how easily you explained this... Thanks! [Edit: this is my first ever YT comment/I had to]
@Amit-id2zx
@Amit-id2zx 6 жыл бұрын
This makes me feel smart.
@jonathandaniel7321
@jonathandaniel7321 4 жыл бұрын
programmers love feeling smart
@zohebkhan2122
@zohebkhan2122 3 жыл бұрын
What a technique!!!. Never seen someone given such an explanation of Regex. Thanks for making it so simple.
@Xaminn
@Xaminn 4 жыл бұрын
One of the first videos I've watched on Regex. Just WOW!
@kundankumarsaraf3563
@kundankumarsaraf3563 3 жыл бұрын
One of the best video I found on KZbin in my life. Thank You Really Hats Off to you
@Ponkotsu67
@Ponkotsu67 2 жыл бұрын
finally i understand the language of the gods
@abhijithshaji4731
@abhijithshaji4731 2 жыл бұрын
Thank you for making "Regex" so easy to understand.
@caasieu
@caasieu 3 жыл бұрын
You made it so easy to understand man, God bless you!
@sahaajsinghchawla1307
@sahaajsinghchawla1307 4 жыл бұрын
I always was scared of regular expressions, but now I understand how easy they are. All thanks to the best teacher!
@hamim183
@hamim183 4 жыл бұрын
This is awesome and super easy learning regex from you. I tried to learn this from another guy on internet which seemed to difficult. But now at least i know the basics of regex. Thanks Corey.
@Nabilo8501
@Nabilo8501 4 жыл бұрын
god you literally literally has a great teaching talent ....this was so simple and interesting please keep on making these great videos
@mightykiller7602
@mightykiller7602 3 жыл бұрын
this is the best regex tutorial on KZbin. shared with friends!
@Manojshankar36
@Manojshankar36 4 жыл бұрын
Great. Really worth it. I am finally able to create regular expressions all by myself. 37.55 mins totally worth it. Once again great job and Thank you so much 😊 ☺️
@turn-me-later
@turn-me-later 2 жыл бұрын
Thanks, dude, I went from knowing nothing to now I can read some of the code I saw on the internet before, which lead me can learn more by myself!!!!
@rohansp1
@rohansp1 4 жыл бұрын
Elegant explanation. You made it really simple to understand the REGEX concepts.Master class....
@expat2010
@expat2010 3 жыл бұрын
Beautiful. I've been trying to get enough of a grasp on them to actually use them not instantly search for an alternative. Finally I have crossed that bridge. You are a really great teacher.
@usa989998
@usa989998 3 жыл бұрын
One of the best videos on RegEx. Great work Corey
@navjotsingh2251
@navjotsingh2251 3 жыл бұрын
You explained regex in a way that we can start using in the real world. This has helped me to understand regex and how to use them in spreadsheets!
@eldrigeampong8573
@eldrigeampong8573 3 жыл бұрын
You are super talented Corey. You just made my day with your explanations. Cheers mate
@Mustafghan
@Mustafghan 4 жыл бұрын
I've been looking on good tutorials on Regular expressions as I use R often to read messy text files, which requires having good regex knowledge. Yours was hands down the best video I encountered while looking for info on regex. So thank you and wish you lots of luck and success.
@gopalsahu9322
@gopalsahu9322 3 жыл бұрын
Tomorrow is my my semester and i am thankful for this😊😊,thank god u had my back
@GaneemathullahBhaurdin
@GaneemathullahBhaurdin 3 жыл бұрын
The best video in explaining regular expression. Great teaching skills.
@SaeedAlFalasi
@SaeedAlFalasi 4 жыл бұрын
Corey this is the best video on explaining regex Not many can teach as good as you
@emarekica
@emarekica 3 жыл бұрын
Corey, thank you so much! All fear is gone and I understood everything. Thank you!
@-.._.-_...-_.._-..__..._.-.-.-
@-.._.-_...-_.._-..__..._.-.-.- 2 жыл бұрын
This was extremely helpful. I'm now confident in my ability to read and write regular expressions. Thank you for the new skill!
@ganeshpalaniappan7923
@ganeshpalaniappan7923 3 жыл бұрын
Very clear explanation due to the reduced use of jargon. Nice one. I will be referring to this from time to time as sometimes regex does feel like it is not the panacea for everything.
@harshadrajput245
@harshadrajput245 4 жыл бұрын
I wish our college professors were so good at explaining stuff.Thankyou for making this simple and easy to understand .
@ntwaliaimevivens8707
@ntwaliaimevivens8707 4 жыл бұрын
Your voice is better for instructing men, this helped me a lot, thanks
@soundwaves1752
@soundwaves1752 2 жыл бұрын
very good explanations, accompanied by perfect examples
@xenablue71
@xenablue71 2 жыл бұрын
Oh my gosh! Thank you, thank you, thank you! You are a fantastic and informative teacher. When I looked at this in a book I got a bit anxious... you made this understandable and were so thorough! You rock! Now I’m going to see what other videos you have!
@sumitranjan8388
@sumitranjan8388 4 жыл бұрын
the best regex tutorial on youtube..........................
@vtyurin
@vtyurin 2 жыл бұрын
it's very exactly explain how to use regular expression. Thank you, Corey!
@Spiegeldondi
@Spiegeldondi 4 жыл бұрын
Very gentle explanation! Loved it!
@nczioox1116
@nczioox1116 4 жыл бұрын
You are awesome for being able to condense so much information in an easy to understand manner!
@gajendra1987
@gajendra1987 3 жыл бұрын
This is really helpful and kudos for explaining these with such diverse examples
@mkhnuser
@mkhnuser 3 жыл бұрын
I wish you to be a superhero of this world, Corey. Thanks!
@peterwong6159
@peterwong6159 2 жыл бұрын
Corey, thanks for this well-organized, well-presented tutorial.
@Dominik-th1lw
@Dominik-th1lw 3 жыл бұрын
You’re explaining it really well, thanks man!
@jpc_337
@jpc_337 4 жыл бұрын
super easy to understand and packed with knowledge! thanks a ton
@agsilverlucas8374
@agsilverlucas8374 4 жыл бұрын
This was AMAZING Cody. By the middle of it I was figuring out solutions by myself (and then realizing you'd submit even better ones :p) Still, thank you very much. I was having a tough time with these yesterday, found this video, bookmarked it, and watched it today. Magic!
@arpithamuthappa
@arpithamuthappa 3 жыл бұрын
You're just brilliant. Well thought through examples and what an awesome way to show these work with the editor. Would love to see advanced regular expression video.
@es8336
@es8336 3 жыл бұрын
Thank you sooo much! You really made it so simple after so many videos
@TheMorrogoth
@TheMorrogoth 5 ай бұрын
Jesus Christ. What a great video! Just ran across this and I have to say... What a great way to explain RegEx!!!
@pr9039
@pr9039 Жыл бұрын
You're doing the lord's work, my dude.
@NealHartsChannel
@NealHartsChannel Жыл бұрын
This was a well thought out video and explained very well. Thank you!
@soukos39
@soukos39 4 жыл бұрын
Great job! Thanks about that tutorial you really helped me with my college project!
@juliocardenas-rodriguez1986
@juliocardenas-rodriguez1986 2 жыл бұрын
~40 minutes invested now to save 100s of hours every year. Thank you
@ayushijain3340
@ayushijain3340 4 жыл бұрын
your videos are gr8.I have started searching youtube with topic + " " + corey Schafer
@IlhomDadadjanov
@IlhomDadadjanov 3 жыл бұрын
Very well explained. Easy to understand. Thanks.
@rubempacelli6815
@rubempacelli6815 4 жыл бұрын
I need to go back here just to thank you for this lesson. Unbelievably, I learned.
@spenarkley
@spenarkley 2 жыл бұрын
I don't have to work with regular expressions yet but I'm now waiting eagerly to the day I will.
@wzupppp
@wzupppp 2 жыл бұрын
Best explanation on KZbin
@flightlessbird9334
@flightlessbird9334 4 жыл бұрын
Thank you so much, I finally understand regular expressions! Great tutorial!
@dimag6036
@dimag6036 4 жыл бұрын
I finally get the REGEXP. Great job!
@vchirilov
@vchirilov 3 жыл бұрын
The nicest video/lesson about regular expressions.
@pratyushkumar361
@pratyushkumar361 3 жыл бұрын
I can never thank you enough for this video. You are god given :)
@N0body247
@N0body247 4 жыл бұрын
Holy cow dude..i litterally spent like 4 hours trying to figure out what i was doing wrong before watching this.. and come to find out..you said the entire group capture is Group 0... i put $1 and it would not do what i wanted it to do.. until you said that.. and i realized FUCK i needed $0 LOL well done.. I could not find any documentation on my prob.. and i know i was the cause.. but i didnt know how to fix it lol.. you deserve a like and subscribe.. Done.
@akashprabhakar6353
@akashprabhakar6353 4 жыл бұрын
Exceptionally well explained! 💐
@MrAnurakt
@MrAnurakt 3 жыл бұрын
Ohh...you are the best man....you have just solved my biggest problem👍👍
@matchallie
@matchallie 2 жыл бұрын
i was literally crying 37 mins ago this is amazing
@syedirfanahmad9626
@syedirfanahmad9626 4 жыл бұрын
Very precise and easy to understand intro
@abintanilanil563
@abintanilanil563 2 жыл бұрын
best ever video for regex tutorial.
@davidribeiro
@davidribeiro 2 жыл бұрын
Amazing content! You made regexp easy to comprehend. Thank you so much!
@stpnpl
@stpnpl 2 жыл бұрын
WOW!! Good job, Sir! Please do advanced regex topics. Thank you.
@Francisco-Gutierrez
@Francisco-Gutierrez 3 жыл бұрын
Thanks, I think I finally understand regex... 36:58 wait what? this is just the basics!
@ninjajain2769
@ninjajain2769 4 жыл бұрын
very very nicely explained !!!
@ayanSaha13291
@ayanSaha13291 2 жыл бұрын
It was superb! Thanks a lot the detailed explanation.
@canantunc4415
@canantunc4415 2 жыл бұрын
This is the best tutorial. Thank you.
@neelroy2918
@neelroy2918 3 жыл бұрын
If you do any searching, and you always do, regexes are indispensable. Every decent editor supports regex search. It would be criminal to waste your time and not use them wherever you could. One thing I miss though is not all languages support matching regexes for example if you have function in any language which has same scope delimiter as inner scopes, say {}, there aren't many languages that support regexes to match them and find start and end of function. You can use forward looking regex but it is neither efficient nor simple.
@narindhil1
@narindhil1 4 жыл бұрын
Thank you very much, this was so helpful
@tessa10001
@tessa10001 4 жыл бұрын
I wish there was more after this. This is just the basics
@luthiers5488
@luthiers5488 4 жыл бұрын
Please put the advanced version of this video :D Loved it!
@mohammedshahidrahman8276
@mohammedshahidrahman8276 3 жыл бұрын
Very helpful tutorial Corey!! Thanks.
@rayyanzaidi3323
@rayyanzaidi3323 3 жыл бұрын
what a video , absolutely fantastic video on entire youtube
@jeremyzhu8885
@jeremyzhu8885 4 жыл бұрын
awesome! so detailed and helpful
@ramioooz
@ramioooz 4 жыл бұрын
Neat, nice and beautiful. Thank you Corey, really appreciated.
@KELSandMINAshow
@KELSandMINAshow 4 жыл бұрын
This was such an amazing video. Killed it
@aaymankhalid9997
@aaymankhalid9997 4 жыл бұрын
Hi,please make an advanced video with regular expressions,This one has been very helpful but I want to practice more
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 39 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 4,2 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3,5 МЛН
Learn Regular Expressions In 20 Minutes
20:52
Web Dev Simplified
Рет қаралды 1,3 МЛН
Regular Expressions - Computerphile
17:19
Computerphile
Рет қаралды 243 М.
Complete Regular Expressions Tutorial! (with exercises for practice)
1:19:21
10 Python Tips and Tricks For Writing Better Code
39:21
Corey Schafer
Рет қаралды 1,3 МЛН
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 199 М.
Regular Expressions (Regex): All the Basics
21:39
Luke Smith
Рет қаралды 57 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН