Complete Regular Expressions Tutorial! (with exercises for practice)

  Рет қаралды 24,163

Keith Galli

Keith Galli

Күн бұрын

Пікірлер: 42
@Evan-e-cent
@Evan-e-cent Жыл бұрын
Hi, I hope you don't mind if I comment on names for symbols: # is called 'pound' because on British keyboards it is the money symbol £ (try option#) ! is the exclamation point or mark that you referred to later < I call the less-than symbol or angle bracket in HTML > is the greater than symbol (it is bigger on the left side) * is an Asterisk which means star. Commonly called just 'star'. | is sometimes called a pipe or vertical bar THANKS FOR A GREAT VIDEO ! WATCHED FROM BEGINNING TO END and made a note of the PDF cheat sheet. Very useful.
@Fflaring
@Fflaring Жыл бұрын
Oh man, I waited this so long, thank you for this video!
@leonardoferreiracalazans9210
@leonardoferreiracalazans9210 9 ай бұрын
Thank you for the video! In negative lookbehind, try to use \b before the pattern you want to match. It has worked for me!
@KeithGalli
@KeithGalli 9 ай бұрын
Thanks for the tip! Glad you enjoyed the video
@michaelpurtell6157
@michaelpurtell6157 Жыл бұрын
The legendary movie from Feb 1996 was Happy Gilmore! It surely contributed to the recent Kennedy Center honors for Adam Sandler. And a great video released on April 13, 2023 is the RegEx tutorial from Keith Galli, great job.
@KeithGalli
@KeithGalli Жыл бұрын
Correct, and haha thank you for the kind words! Glad you enjoyed :)
@ahmadshabaz2724
@ahmadshabaz2724 Жыл бұрын
nothing better than entire you tube . your work is awesome . its really helpful man . thanks a lots
@giacomobianchi3857
@giacomobianchi3857 Жыл бұрын
Finally I understood regex!!! Thank you
@KeithGalli
@KeithGalli Жыл бұрын
You're very welcome! Glad it was helpful.
@rayedriasat8
@rayedriasat8 9 ай бұрын
at 38:52 I used [01][0-9][-./][0-3][0-9][-./]\d{4} here inside [ ] square brackets we don't need to escape the dot (.) it is just dot, if we had used dot outside of square brackets then we had to escape dot. Cuz dot outside [] means everything except newline
@stefanomedici5326
@stefanomedici5326 Жыл бұрын
Always super helpful! Thank you Keith :)
@johnnybegood948
@johnnybegood948 Жыл бұрын
You are the best! Thank you for this video props from brazil
@jojithekkan3713
@jojithekkan3713 Ай бұрын
You can use the following regular expression in Python to check for a valid two-digit month (01 to 12): import re # Regular expression pattern for two-digit month (01 to 12) pattern = r"^(0[1-9]|1[0-2])$" This is the answer for your question at 39th minute
@BhushanPatil-v8i
@BhushanPatil-v8i 8 ай бұрын
37:54 you can use range eg. [1-31]
@anonviewerciv
@anonviewerciv Жыл бұрын
My body is regex. 🔎📃 10:50 Linguistically speaking, [y] can be a vowel, especially in words like "crypt". Pedantry of course, since it could just be added into the regex if needed. 🤓 36:40 Might not really be up to regex to do data validation. There are better tools for that. 🧰 In fact, integrating these into data workflows would be a good follow-up video for the future. ▶
@javaluvawithjeremystones6315
@javaluvawithjeremystones6315 6 ай бұрын
Really amazing video! Thanks for the great content! For the part where it was allowing you to not escape the period in the square brackets, it's not sublime, you don't need to escape characters inside square brackets, although it won't complain if you do escape them. The only exception I can currently think of is the ^ symbol and only if you put it at the beginning.
@motlatsimoea5615
@motlatsimoea5615 Жыл бұрын
Yes!!!!!!! Favorite tutor about to tackle a subject I've beeeeeeeen wanting to learn! Can't fight fate! Let's go!!!!!!!!
@maxximumb
@maxximumb Жыл бұрын
Ali sent me. Am so glad she did. You have some great videos.
@shawnabirnbaum8658
@shawnabirnbaum8658 Жыл бұрын
I would love to see a video on syntax trees and X' theory!
@DendrocnideMoroides
@DendrocnideMoroides Жыл бұрын
a period in a character class only matches a period, same for the other metacharacters like ? * +, the reason for this is there is no use to have a character match every character inside a character class, since for that you would not even need a character class, similar reasoning for the other metacharacters
@ucphattruong4341
@ucphattruong4341 Жыл бұрын
Omg. Thanks to you, I could understand the regex. You're truly life saver
@KeithGalli
@KeithGalli 11 ай бұрын
Glad the video was helpful!!
@youturunnyng
@youturunnyng 4 ай бұрын
​@@KeithGalliRubén godoy islas
@youturunnyng
@youturunnyng 4 ай бұрын
Rubén godoy islas
@billsneddon
@billsneddon Жыл бұрын
not optimal but (0[1-9]|1[0-2]) would only match months 01-12
@KeithGalli
@KeithGalli Жыл бұрын
That's a smart solution! Didn't think of that, thanks for sharing :)
@FUNNEAS
@FUNNEAS Жыл бұрын
Hi Keith, excellent video on regex.... One of the best videos made ever on youtube on regex.....im glad i found your video.......Can you make video on finding specific word in a sentence ex (i want to cancel my service. Please cancel my hbo, i want to can sail please console my service, im interested in cancelling) multiple words like this and we want to match word only (cancel | can sail |console service) and ommit any other word like 'cancel hbo' 'cancel bill' ..... Any way can i reach out to you personally with sample. Thanks
@HaktanErarslan
@HaktanErarslan Жыл бұрын
Great video, Could you please prepare new video(tutorials) about ML?
@shangtee1
@shangtee1 Жыл бұрын
Very useful!
@JumaleAbdi-tu3zh
@JumaleAbdi-tu3zh Жыл бұрын
Hey, Thank you for the amazing content. Please Would you mind covering about End to End Pytorch series from the Problem statement, Data Collection, Modeling, Deployment, and Testing
@wahidali9145
@wahidali9145 Жыл бұрын
Hey keith, im looking for data science job. Can you help in that, any reference
@rudyten
@rudyten Ай бұрын
i gave up on ya after the groups. lol moving on another tutorial
@MrBulatovich
@MrBulatovich Жыл бұрын
Так-то ничё! Просто и понятно.
@dsinghr
@dsinghr 8 ай бұрын
the password regex is not working for me!
@user-jj4dz2wt7i
@user-jj4dz2wt7i Жыл бұрын
Hey Keith! Here from Ali's channel. I wanna see my name in sparkles aa
@sloughpacman
@sloughpacman Жыл бұрын
Happy Gilmore 😀
@KeithGalli
@KeithGalli Жыл бұрын
Haha you got it! 🤝
@sloughpacman
@sloughpacman Жыл бұрын
@@KeithGalli Good video Keith, and some good links too. Regex is a fun diversion from time to time, just like playing around with AWK and SED in shell scripts. If you ever get some time to explore hacking binary/executable files I would recommend it, you'll find it very satisfying and right up your street.
@sebastianalvarez1537
@sebastianalvarez1537 Жыл бұрын
lets go
@DendrocnideMoroides
@DendrocnideMoroides Жыл бұрын
49:02 You could definitely get everything if you add an extra parenthesis around the thing you want to get in this case (([a-z][A-Z])+[a-z]?)@(\w+\.\w+)
The Truth About Learning Python in 2024
9:38
Internet Made Coder
Рет қаралды 211 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 62 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 11 МЛН
Regular Expression Methods in Python
8:37
Alex The Analyst
Рет қаралды 14 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 3,3 М.
Regular Expressions (Regex) Tutorial: How to Match Any Pattern of Text
37:55
How on Earth does ^.?$|^(..+?)\1+$ produce primes?
18:37
Stand-up Maths
Рет қаралды 379 М.
Learn Regular Expressions (Regex) - Crash Course for Beginners
45:38
freeCodeCamp.org
Рет қаралды 208 М.
Regular Expression Metacharacters in Python
20:03
Alex The Analyst
Рет қаралды 9 М.
Learn Regular Expressions In 20 Minutes
20:52
Web Dev Simplified
Рет қаралды 1,3 МЛН
10 Crazy Python Operators That I Rarely Use
11:37
Indently
Рет қаралды 42 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 76 М.