2.1: Introduction to Regular Expressions - Programming with Text

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

КОМЕНТАРІ • 251

  • @illlg
    @illlg 7 років тому +229

    Awesome! You turned my hate for regex into curiosity!

    • @sergiyrudenko905
      @sergiyrudenko905 7 років тому +3

      +1))

    • @Ko0lHaNDLuKex
      @Ko0lHaNDLuKex 7 років тому +2

      Exactly my feeling after finishing the video!

    • @Techemilio7
      @Techemilio7 6 років тому +2

      Same here!

    • @ZapOKill
      @ZapOKill 6 років тому +1

      he turned my curiosity for regex into hate for him

    • @JoshPeterson
      @JoshPeterson 4 роки тому +1

      Agreed! Whenever I try to learn about regex my mind normally just goes blank and I want to gouge my eyes out. This video just busted through that.

  • @ejalbania
    @ejalbania 7 років тому +88

    you're one heck of a happy kid man. you make the topic interesting and lively. keep it up. Thanks!

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

    I had to subscribe. You make a topic in a field that doesn't always get taught with enthusiasm or personality so vibrant! I'm a student with ADHD and heavily rely on interest based learning. You jumping and moving all about kept my brain on my feet and engaged throughout the video.
    Keep it up, and thanks for the quality content

  • @jaredforeman5840
    @jaredforeman5840 5 років тому +2

    Dude. Ok so I've been using regex based searches, queries, for some tasks, but the truth is it's like speaking a foreign language by sounding out pre-learned noises. But you... you're like my spirit animal. The way you're teaching is how I learn. Make me feel like a 5 year old with a cookie and you've got my attention. And I'm a grown ass 37 year old dude.

  • @BasketLex
    @BasketLex Рік тому +3

    I know everyone has already said it, but this was so well made and keeps you engaged throughout! Well done.

  • @estelaplateada4
    @estelaplateada4 8 років тому +3

    You sir are the best. Regex is a truly overlooked topic, but extremely useful, generic, and language agnostic. Bravo

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

    This channel is a godsend even 4 years later

  • @HamiltonFilmsNYC
    @HamiltonFilmsNYC 6 років тому

    By far the absolute BEST explanation of regular expressions I have ever seen!
    I now understand how they work and am no longer afraid of them at all!
    Thank you too much for this!!!!!!!!!!

  • @victoriaosuagwu5979
    @victoriaosuagwu5979 6 років тому +7

    You have an infectious personality!! Thank you so much, I'll definitely be watching the entire playlist, learning from you is fun! Thanks for the informative tutorial

  • @progtom7585
    @progtom7585 4 роки тому +1

    legend, nice intro thanks!
    Edit - i watched a bunch of other videos afterwards, i now realise this video is the best on youtube to ACTUALLY understand the key principles of regex. thanks!

  • @siddhantrai7529
    @siddhantrai7529 5 років тому +2

    I can't thank you more....believe me you made my day...I was struggling with this topic since a week...but finally my search is over , I literally found the best playlist for Regex on youtube or possibly on internet...keep up the good work...hope to see your and siraj colab again😇😇😇...cheers from India

  • @dalzent
    @dalzent 7 років тому

    The first video tutorial about programming that I can see who is talking about, AND I REALLY LIKE IT!! Is nice, enjoyable, easy, grateful, turned compressible and interesting to watch. I learned in an easy way with your video. I hope it works for all your videos (and thank you for them). I'm going to look for python tutorial on your list

  • @banliyomuzik
    @banliyomuzik 8 років тому +2

    Great introduction ! I was confused when I was trying to figure out what regular expressions were by reading pdfs yet your tutorials are really helpful so thank you a lot

  • @naseemgharibi
    @naseemgharibi 6 років тому +3

    this is the best explaining i've ever seen, you are an awesome person and thank you so much no only for this video but for all videos and your hard work is giving us a huge help

  • @hitta750
    @hitta750 6 років тому +1

    Watching your tutorials in 1.5x speed is both top-grade informative and hilarious.

  • @bballantyne3
    @bballantyne3 7 років тому

    Thank you for this! No exaggeration, I've been coding for more than 10 years and avoided regular expressions because I literally fall asleep reading about them. And where I really needed one, I'd find a close substitute on google and bumble through it on regex101.
    Your lively presentation kept my interest and I'm going on the next video. Thank you!!

  • @sumit2308
    @sumit2308 7 років тому +1

    Kudos...very nice explanation
    The person who is teaching regex in this video is very nice, the way he delivered the episode 1 makes you feel engaged all the time,
    Looking forward for more videos
    Again thanks for making this

  • @jamesroncy5748
    @jamesroncy5748 4 роки тому

    Thanks for your regex tutorial. I have use this on this day writing this comment. I reviewed all of your regex tuts yesterday coz i am hinting that there will be a regex like question in my exam, and there is on the backend challenge part. I have answered it correctly. I dont know if ill be qualified for the position but I am confident that my answers our correct. it is a good knowldge to add also :) thanks sir

  • @chloecreate
    @chloecreate 4 роки тому +1

    So glad I found your video, although it is many years old. Am so grateful, thanks for applying yourself, your personality and skill. I will subscribe, and watch all your videos.

  • @julianbazanaguirre8439
    @julianbazanaguirre8439 4 роки тому

    I started learning JS a month ago aproximately, and React at the same time. I was gonna ask some friends if it is useful to learn about regex, hahaha, but dude, your enthusiasm made want to learn more about it! Thanks, we need people that show the way the way you do (a.k.a also known as "teachers" in the traditional world).

  • @JMT34237
    @JMT34237 4 роки тому

    This guys should be cloned and teaching all programming courses. Smart and so passionate. Thanks so much for teaching us. You have a real gift. 👍👍👍👍🙏🙏🙏

  • @duyle-ui4ul
    @duyle-ui4ul 7 років тому +22

    You'r awsome. You make difficult thing look easy.

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

    This dude has some seriously contagious enthusiasm!

  • @TheULTIMATECHAPIN
    @TheULTIMATECHAPIN 4 роки тому

    I'm not a fan of RegEx but I really enjoy your style of teaching. I'll watch this over and over again until I manage to get a grip on it. Thanks!

  • @linky0064
    @linky0064 7 років тому +3

    Just came here to learn Regex, already in love with your passion for them :)

  • @antoniogocaj5629
    @antoniogocaj5629 5 років тому +4

    Best REGEX explanation found in the the whoooooole universe :)

  • @koltonwilliams7502
    @koltonwilliams7502 4 роки тому

    I feel like a child. Your excitement for Regex makes ME excited lmao

  • @openlifeopenmic4412
    @openlifeopenmic4412 7 років тому

    subscribed within the first 2min of the first vid I've ever seen by this guy b/c not monotone and not annoying.

    • @openlifeopenmic4412
      @openlifeopenmic4412 7 років тому

      doesn't sound like much but apparently, in code tutorials, it is...

  • @shreyavaidy
    @shreyavaidy 5 років тому +4

    Thank you for making this joyful! I dreaded learning regex

  • @allardbuising32
    @allardbuising32 7 років тому

    Thanks for showing me the proper way of thinking and looking at how to make a regex!

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

    I suck at learning but this was fantastic and I followed the whole way through - thanks for the good energy! You are an excellent teacher.

  • @nabilbentamer9071
    @nabilbentamer9071 6 років тому

    i couldn't understand regex by my self. this video helped me a lot ,thanks men.

  • @djsevkic
    @djsevkic 8 років тому

    Just what the doctor ordered. Looking forward to watching the entire playlist.Thanks!

  • @eLemonnader
    @eLemonnader 7 років тому

    You are a god. Currently in Intro to Finite Automata and my prof is utter shit. Your videos on this make it actually easy to understand when I was 100% lost before.

  • @carson8417
    @carson8417 6 років тому +1

    Thank you so much. My professor's lectures are like watching paint dry. You make things actually seem fun haha

  • @ironydips
    @ironydips 7 років тому +5

    Thanks Daniel. Undoubtedly great videos and fun to watch as well. Kudos.
    I am curious how you make videos, what preperations do you do for making videos and how you make your desktop screen appear at your back?
    Thanks in advance. :)

    • @akarshrastogi3682
      @akarshrastogi3682 6 років тому +1

      Here is him explaining and giving a tour to his studio setup in NYU. : ua-cam.com/video/JkznVy_Ciwk/v-deo.html

  • @ayokunlesunmola60
    @ayokunlesunmola60 6 років тому +6

    damn 😭. This video made me so happy I want to cry

  • @Benwilli1
    @Benwilli1 6 років тому

    If more tutorials had this kind of passion behind them I would be WAAYY smarter. This guy is super siked about regular expressions.

  • @omegaPSI2006
    @omegaPSI2006 4 роки тому

    My face coding channel covering my favorite topic. Yes please!

  • @sixmike
    @sixmike 6 років тому

    This finally cracked the shell of regex for me, thanks so much for this.

  • @moaazbhnas886
    @moaazbhnas886 7 років тому +7

    your explanation is awesome ❤️

  • @SAlexandert8
    @SAlexandert8 7 років тому

    I seriously hated regular expressions before this video! Moving onto your next video so good job!

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

    For some reason I became the type of person that clicks on a regex video on purpose

  • @JosephLuklukkyjoe
    @JosephLuklukkyjoe 5 років тому

    who the hell would thumbs down this brilliant tutorial?

  • @johnn4314
    @johnn4314 6 років тому +1

    very greatful for free high quality content

  • @souvikdatta97
    @souvikdatta97 6 років тому

    If you are trying this in MS-Word, in the Find dialog box, press More>> and select Use Wildcards. And instead of '\d' you have to write [0-9].

  • @Calm_Energy
    @Calm_Energy 6 років тому

    you have a great ability to make something like regex less intimidating, thank you!

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

    your explanations are so good

  • @invaderzim4962
    @invaderzim4962 6 років тому

    Seriously, what seemed like a monster is literally a unicorn! REGEX FTW
    this video is quite informative.

  • @Liggliluff
    @Liggliluff 4 роки тому +1

    (5:20) How to match phone numbers:
    /(\+[1-9]+ ?)?\(?[0-9][0-9 .)\-\/]{5,11}[0-9]/
    It will match invalid phone numbers too, but it will cover a much broader range of phone numbers, including international ones. But a more precise code could be written if you want to avoid incorrect matches.

  • @charmainetabilas3132
    @charmainetabilas3132 5 років тому

    I'm teaching myself JS and your videos are so helpful! Thank you so, so much!

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

    Great quick explanations. I love your energy. :)

  • @jayitabhattacharyya4313
    @jayitabhattacharyya4313 5 років тому

    Sir your way of teaching is fantastic! Grows interest to know more

  • @TheZephaniahsingh
    @TheZephaniahsingh 4 роки тому

    A very passionate speaker!

  • @Bertamlucas
    @Bertamlucas 6 років тому

    Thank you for the explanation... I saw some videos before , they were just confusing me... Now it is all clear

  • @anirudh4946
    @anirudh4946 4 роки тому

    Your energy is amazing!!

  • @takudzwatongoona6876
    @takudzwatongoona6876 4 роки тому +8

    the down side of regular expression is that ...thats how they look like : )

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

    Liked and subscribed ! ... i had a question i forget how to code the regular expression (find) i noticed the button u had on the page u made in this regular expression video i was wondering if dont mind me asking if u could tell me the regular expression for (find) i google searched it so many times different ways and i cant find it anywhere ... thx.

  • @BRASIL989
    @BRASIL989 7 років тому

    You're dope man. I wish you were my instructor in college.
    I had an instructor who had me hate everything about regular expressions, now I'm more engaged than ever.
    I blame illuminati

  • @alexrogers1137
    @alexrogers1137 6 років тому

    Thanks for your videos! Your personality helps me stay focused.

  • @samsonbelario9828
    @samsonbelario9828 5 років тому

    Always skipped this part of programming but this is better explained, thanks

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

    Expained well and fun. Thanks man!

  • @cristobalheiss5349
    @cristobalheiss5349 6 років тому

    This was great, I'm scared of (and that makes me hate) RegEx and that's the reason I want to master them. Your video was my first step and I'm extremely glad I found it. Plus, I laughed a couple of times... in a regex video, so that is a feat on it's own. THANKS!

  • @mahimsd7645
    @mahimsd7645 6 років тому +2

    gr8 work .....
    full of energy .....excitement

  • @abrahamgonzalez3882
    @abrahamgonzalez3882 7 років тому

    is so funny learn watching your videos. I´m a little bit disperse but i understand all the things u say, i just love it.

  • @r.m6094
    @r.m6094 6 років тому

    what a breath of fresh air. Love the enthusiasm!!!!!!!!

  • @yuvalgat4163
    @yuvalgat4163 8 років тому +2

    This is great! But there's one mistake... . (dot) matches anything except a new line, so it doesn't actually select everything, from what I understand :P

  • @canny255
    @canny255 4 роки тому

    Thanks for such a great intro to the Regular Expressions!!

  • @JayTailor45
    @JayTailor45 6 років тому

    Thank you so much. Now I have started learning regular expressions after hard time.

  • @MohamedSuliman96.6
    @MohamedSuliman96.6 3 роки тому

    Awesome, you make it look easier for me

  • @abeoWTF
    @abeoWTF 7 років тому +1

    I'm over here pretending i'm like this. :-)
    Excellent video, thanks!

  • @antoniolino7399
    @antoniolino7399 4 роки тому

    Awesome! I don't speak english very well, but I could basically understand what that means. Thank you.

  • @prayushdawda7807
    @prayushdawda7807 6 років тому

    Thanks for making this super simple to understand!

  • @sahandpar
    @sahandpar 7 років тому

    Thanks, this was really fun and interesting to watch. Keep up the great work.

  • @rgenericson5361
    @rgenericson5361 7 років тому

    What a big help! I finally understand it!

  • @mage9264
    @mage9264 6 років тому

    Incredible teaching skills... Thanks for this great regex series.

  • @parison813619
    @parison813619 7 років тому

    I am in love with javascript because of you

  • @dipayanchatterjee3131
    @dipayanchatterjee3131 4 роки тому

    this is really amazing learning

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

    Thank you. Your way of explaining things is truly inspiring ;)

  • @hasnainAliDev
    @hasnainAliDev 4 роки тому

    Thanx for such quality content

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

    Dude, you are Incredible!

  • @jimmyciaston7733
    @jimmyciaston7733 6 років тому

    Great video ! I would love to have your amount of energy on a Monday Morning

  • @SayantanHack
    @SayantanHack 6 років тому

    u r great sir just i love u & plz share all details of the topic u r talking about thanks ...u r awesome..

  • @konulaliyevaa
    @konulaliyevaa 6 років тому

    A very good, simple and clear explanation :) Thanks a lot!

  • @liverleef
    @liverleef 7 років тому

    This was very easy to understand. Thank you

  • @swathibali6913
    @swathibali6913 5 років тому +2

    I love😍 ur teaching. ...I'll subscribe right now✌❤❤

  • @ShaunDreclin
    @ShaunDreclin 6 років тому +2

    For anyone learning regular expressions, I highly recommend using a site called "regex101 dot com" (Not sure if I can post links here)
    It does syntax highlighting like atom does in this video, but it also displays every part of your regex translated into English on the right side.

  • @HunterDrastic
    @HunterDrastic 4 роки тому

    What environment would I use Regex in? Say I paste a dump of information into a text file. What would I use to use regex commands on that test file?

  • @roman.venica
    @roman.venica 7 років тому

    Best explanation ever!

  • @Blue3agle
    @Blue3agle 7 років тому

    Here is a conundrum for you. I have two patterns of strings:
    Name number 1 hit Name number 2 for 1234 points of melee damage
    Name number 1 hit Name number 2 with nanobots for 2468 points of melee damage
    Now I wan to have match groups as follow
    (Name number 1) hit (Name number 2)( with nanobots) for (\d+) points of (type) damage
    I am trying to do this with the expression
    (.+)? hit (.+)?( with nanobots)? for (\d+) points of (.+) damage
    However instead of group 2 being "Name number 2" it ends up as "Name number 2 with nanobots" because too greedy and/or too lazy.
    Note that space is a valid character for the names, so using word boundaries is out of the question. How can I solve this?

    • @ismaelcebrianmarco7288
      @ismaelcebrianmarco7288 7 років тому +1

      Super late to the party, but I got a (not completely satisfactory) solution:
      /(.+) hit (?:(.+)(?= with nanobots)|(.+)(?= for)) ?(with nanobots)? for (\d+) points of (.+) damage/
      This will select all the info you want in both cases (with or without nanobots), but it has one caveat: "Name Number 2" will be in the element 2 or 3 of the result depending on the case, so you will need to fix the result arrays before using them.
      So maybe a better solution is to define a function that first detect if the string contains "with nanobots", and chooses between two patterns to apply accordingly.

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

    you made coding FUN

  • @LELEFO
    @LELEFO 5 років тому

    I love Daniel!! How is he so awesome ?!

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

    This video would make a great drinking game. Take a shot every time he says 'literally'. LOL

  • @hdm_vision
    @hdm_vision 6 років тому

    Awesome ... Im starting to love regex ... Thankyou so much

  • @osherezra131
    @osherezra131 6 років тому

    Great job bro, by the way is it possible to search with regex in windows ?

  • @miraclehesed8959
    @miraclehesed8959 4 роки тому

    Finally the head pain is gone......... a little. Let me go through the next course.

  • @mahimsd7645
    @mahimsd7645 6 років тому +2

    gr8 work ....
    gr8 explanations....

  • @imguimoreira
    @imguimoreira 5 років тому

    You're silly! The kind of developer I like to work together :) Thanks for the vid

  • @joesmith9330
    @joesmith9330 7 років тому

    REGEX WORKS BY FIRST DOWNLOADING THE WEBSITE AND THEN PICKING OUT THE CHARACTERS LIKE PERCENT % OR + AND WRITING THEM DOWN THEN USING THE BROWSER (GOOGLE )TO LOOK AT THE SCREEN WITH THE HTML. U THEN USE REGEX TO SEARCH THE HTML FOR THE % OR + THAT U PICKED OUT OF THE SCREEN THEN U CAN COUNT LEFT OR RIGHT ON THE SCREEN TO GET TO THE CHARACTERS U WANT TO SELECT AND READ IN UR PROGRAM (SCRAPING THE DATA ). THE SLANG NAME FOR THIS IS (SCREEN SCRAPING ).

  • @allenhe9848
    @allenhe9848 7 років тому

    Thank you so much! Your video helps a lot!