Regular Expressions - Enough to be Dangerous

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 570

  • @MiserableDuck95
    @MiserableDuck95 6 лет назад +604

    Best regex tutorial I've ever seen. Props.

    • @TraceguyRune
      @TraceguyRune 6 лет назад

      Austin Mallar Darek has a good tutorial on Regex

    • @luis96xd
      @luis96xd 6 лет назад

      I agree with you!

    • @trilobyte3851
      @trilobyte3851 6 лет назад

      I think the Perl Tutorial with Regex from Leeds University I think is better even though its way old...

    • @abiggerboat5361
      @abiggerboat5361 6 лет назад

      Agreed! Very nice explanation.

    • @vibhanshushrivastava7223
      @vibhanshushrivastava7223 5 лет назад +1

      It made my concepts so clear.
      Agreed!

  • @phillpeters
    @phillpeters 6 лет назад +63

    When Superman goes to bed, he puts on his Engineer Man pyjamas

  • @Dxpress_
    @Dxpress_ 6 лет назад +356

    I came into this video hating regex.
    I left this video liking regex.

    • @EngineerMan
      @EngineerMan  6 лет назад +117

      My work here is done.

    • @andymitchell2146
      @andymitchell2146 6 лет назад +4

      Snap

    • @_Stin_
      @_Stin_ 3 года назад

      Glad you've rediscovered your love of regex's lol
      I think like many powerful tools, an good understanding pays dividends.
      Nice video, Engineer Man :)
      BTW, my e-mail address has a hyphen in it, and there are a surprising number of e-mail regex's which don't match the RFC, denying my e-mail address :/

    • @kekaci
      @kekaci 3 года назад

      @@_Stin_ exactly why i prefer open src sites

    • @DomskiPlays
      @DomskiPlays 3 года назад

      TRUUUUE

  • @jeffsirkis2552
    @jeffsirkis2552 6 лет назад +84

    I have never attempted Reg Ex but that was really easy to follow and understand. Keep up the quality content.

  • @GSR600Relaxed
    @GSR600Relaxed 6 лет назад +124

    Cool intro to regex. I would also welcome a second part!

  • @alexrobidoux2062
    @alexrobidoux2062 6 лет назад +22

    Had no idea what Regex was, i just clicked out of curiosity but this is something i wish i would have known 20 years ago, the whole time i was watching i my brain would think of all the things i could do w that. I'm learning this stuff, the potential is limitless.

  • @jonrhaider
    @jonrhaider 3 года назад

    By far - absolute best walk through of regex I've been able to find online. Underrated video. Great job, thanks Engineer Man!

    • @EngineerMan
      @EngineerMan  3 года назад +1

      You're welcome. Glad it helped.

  • @alicefraser5799
    @alicefraser5799 2 года назад

    Thankyouthankyouthankyou...! I am friends with regexes now. In just 15 minutes you have un-confused me and made it look painless... it's given me the courage to continue to explore. I didn't think it was possible :). You rock man.

  • @adarshkishore6666
    @adarshkishore6666 3 года назад +3

    Best regex tutorial I've seen! I had almost given up on this thing and here Engineer Man comes and explains it so neatly.

  • @jmullentech
    @jmullentech 6 лет назад +17

    Just had a *legit* "lightbulb" moment while watching this. I've been trying to get my head around RegEx for a while now and this just made it happen. AMAZING tool and awesome explanations. Thank ya sir!

    • @EngineerMan
      @EngineerMan  6 лет назад +1

      Happy to have been of some small help.

    • @scottkirkwood3465
      @scottkirkwood3465 6 лет назад

      Same here... I've been in software for a while and this was there perfect video I needed to more fully understand RegEx!!!

  • @sukantamaikap3366
    @sukantamaikap3366 6 лет назад +37

    I went through multiple regex tutorials and forgotten it an equal number of times after a period of not using it. That's not going to change this time either. But now I know which tutorial to refer to when I need a refresher. Thanks for this one.
    And would really appreciate a follow up video.

  • @kingsuo
    @kingsuo 6 лет назад

    Very easy to watch ! I am currently watching all your vids to help me broaden my knowledge on moving elsewhere in IT

  • @robot313
    @robot313 6 лет назад +1

    Engineer Man, I have looked up tutorials on RegEx before but always walk away confused. Thanks to you I now understand! Thank you for the to-the-point and simple explanation! I love how you're always so relaxed and are just like, yeah, this is how it is, so simple. LOL

  • @DraganovDesigns
    @DraganovDesigns 3 года назад

    After numerous tutorials this one definitely takes the crown. Thanks for the help.

  • @quentinwolf
    @quentinwolf 6 лет назад +1

    Thanks for the video Engineer Man!
    I truly hated dealing with Regular Expressions, and would run into situations where I'd try to change an existing one, or create a new expression that would simply break and no longer match what I was aiming for. Your detailed explanation has made it much less scary, and it makes much more sense now.
    Keep up the great work!

  • @scttshwldct
    @scttshwldct 5 лет назад

    Seriously, the first time I've had regex explained to me that made sense. You gave enough to actually get started, but not so much to overwhelm. Great tool, btw.

  • @suthtech
    @suthtech 6 лет назад

    Thank you for this. Over the last several years RegEx has been such a pain for me. This helped me fix something I spent hours working on in MINUTES that I'd been dreading working on.

  • @pcolapaddler
    @pcolapaddler Год назад

    I tinkered with trying to learn regex a couple years ago and got sidetracked by other stuff. This tutorial explained a great deal in just 15 minutes. Good job.

  • @miyazakizachary5108
    @miyazakizachary5108 3 года назад

    I thought regex was so cryptic not until you explained it in this great tutorial. The best so far in you tube.

  • @AskMrGustavo
    @AskMrGustavo 5 лет назад

    Outstanding introduction. Clear, concise, and a comprehensive primer for beginners. Highly recommended.

  • @pasej5
    @pasej5 Год назад

    I followed you tutorial while using Rubular, This is the best and simplest regex tutorial

  • @caiocesarmelolopes2156
    @caiocesarmelolopes2156 3 года назад +1

    Best regex explanation ever, loving your channel

  • @newaivn
    @newaivn 4 года назад +3

    Love the straight forward no "bs" approach. Great introduction to regex :)

  • @MohsenFarajYT
    @MohsenFarajYT 3 года назад +1

    wow you made Regex so simple... I never thought a 16 minute video could teach all the essentials but here we are! huge thanks! you are awesome :) cant wait to use this in VS code search or javascript projects

  • @sagarsutar7318
    @sagarsutar7318 5 лет назад

    damn this was soo useful.
    - I searched the youtube a a lot for Regex tutorial for SQL, but I couldn't find any.
    - I read documentation 10-12 times, I didnt understand shit!
    - Bought a course on udemy which covered Regex, I still didn't understand.
    But this video made my concept clear af!!
    One of the best channel for Coders!

  • @gregcoomber9960
    @gregcoomber9960 5 лет назад +1

    This video is so incredibly useful, I've been having trouble struggling to understand regular expressions and this video helped kick-start my understanding.
    Thanks!

  • @harleyspeedthrust4013
    @harleyspeedthrust4013 4 года назад +1

    Debuggex is fantastic. I needed to write a crude email regex (given the circumstances I had no other options, so I made sure the regex was very lenient and I tested it on email lists) and debuggex was plenty of help. This is also a really good tutorial, regexes are hard

  • @wtfdoiputhere
    @wtfdoiputhere 2 года назад

    absolutely the perfect regex tutorial and I've never had the courage to even begin learning regex

  • @PeterPanicker
    @PeterPanicker 6 лет назад

    Man - you make it so understandable ... which admittedly, at least in my case not the same as using it with a degree of proficiency - but I hear you loud and clear - use it often.

  • @jesobuild
    @jesobuild 6 лет назад +2

    This has to be one of the best tutorials I've ever seen. Keep it up!

  • @dogdomino100
    @dogdomino100 6 лет назад

    Mate - absolutely class videos. perfect pace and for some reason everything I've needed help on you've given me the exact answer!!! Thanks again.

  • @bimalchandrakarmakar1427
    @bimalchandrakarmakar1427 5 лет назад

    That was literally THE BEST RegEx Video I've seen ! It helped me a lot. Thank you so much

  • @davepop3156
    @davepop3156 5 лет назад

    Cheers for this compact tutorial of Regex. Needed a refresher and this starts that off brilliantly.

  • @BountifulOne2024
    @BountifulOne2024 5 лет назад

    Wow...on the rare occasions that I have had to implement reg ex it's been a case of "figure out what I need to get the job done." Having a tool like this one will really help! Thanks...

  • @howiekalbz7396
    @howiekalbz7396 5 лет назад

    This is good, i watched other videos that got me confused with their approach this kinda aswer lots of my questions why they are adding this or that and having the graphical view makes things clear keep up the great work... following now

  • @stefandevos1520
    @stefandevos1520 6 лет назад

    Just come across your channel and I love it. Short, to the point and informative. Thumbs up

  • @mikeg3660
    @mikeg3660 3 года назад

    Very cool. I’ve done lots of regex over the years but definitely found times where I couldn’t see why it wouldn’t match, this would’ve been a great help.

  • @roflbofl
    @roflbofl 3 года назад

    Multiple times i've learned regex, and forget it. Now i will remember this to the rest of my life, thank you!

  • @daverothfarb2739
    @daverothfarb2739 6 лет назад

    Wow. Engineer Man, you helped me see the light. Regex always frightened and confused me but your explanation made it so much more intuitive. Why can't all the software books explain it like you did??? Thank you so much, Engineer Man! Love all your videos, they are really inspirational.

  • @renato1999-p1l
    @renato1999-p1l 3 года назад

    Nice job you're doing in this channel man ! Congrats!

  • @leonvking0
    @leonvking0 6 лет назад +47

    \w actually matches digits as well
    from the cheat sheet it says:
    \w A word character (same as [_a-zA-Z0-9])

    • @EngineerMan
      @EngineerMan  6 лет назад +29

      I should have made that more clear. Thanks for point that out.

    • @yoannguillard6877
      @yoannguillard6877 5 лет назад +8

      \w : [a-zA-Z0-9_]
      It matches also underscore
      www.w3schools.com/jsref/jsref_regexp_wordchar.asp
      docs.python.org/3/library/re.html

    • @xrafter
      @xrafter 4 года назад

      @@yoannguillard6877
      But he put the underscore

    • @farhanaditya2647
      @farhanaditya2647 3 года назад

      @@xrafter Exactly 😅

  • @munin81
    @munin81 3 года назад

    This was, by far, the best regex video I have ever watched.

  • @agerven
    @agerven 5 лет назад

    Using a lot of regular expressions in my work I was already quite familiar with them. But the tool you use is awesome and worth while looking at this video. Thanks!

  • @theodorn
    @theodorn 4 года назад

    Thank you, very helpful. I'm studying web development within .NET and we had to use regular expressions in one assignment. I had problems understanding how they work, and your video has been of immense use to me. The railroad diagrams are especially useful, make it so much easier to understand the logic of the regular expression being examined.

  • @dreamerlegoman
    @dreamerlegoman 3 года назад

    I love you man. After all these years of confusion I finally feel like a superhero, a new member of Justice League, Dr. Regex also known as Mr. String. My superpower is to manipulate any string under any form around the universe. I just need good wi-fi. Neat!

  • @Abhiattipra
    @Abhiattipra 6 лет назад

    Tons of love❤️. You made me one step closer to programming which I always thought not my cup of tea. I'm more confident with regex now.

  • @lalathealter6513
    @lalathealter6513 3 года назад

    thanks a lot for the link! This tool saved my life... I should pay more attention to such kind of stuff while working on projects

  • @RedEyedJedi
    @RedEyedJedi 5 лет назад

    This is one of the best regex tutorials on RUclips. Thanks for making it.

  • @aborucu
    @aborucu 3 года назад

    Perfect can't think of a better concrete visual presentation

  • @stevehof
    @stevehof 3 года назад

    Whoa, easily the best Regex explanation online or at my university

  • @ajones1274
    @ajones1274 6 лет назад

    Brilliant. Im going to watch this a few times this week to make sure I remember. I always say to myself I want to learn it, and never gotten round to it. You explained it really well

  • @bjstucker
    @bjstucker 6 лет назад

    Really enjoying your videos man keep it up and I will keep watching and learning.

  • @Mishso1337
    @Mishso1337 6 лет назад

    I am terrible at regex, and you made me understand it better than any tutorial I could ever read..... good stuff man!

  • @1noryb
    @1noryb 5 лет назад

    coming from a lot of simple experience in windows and word, this really helps bridge what I had perceived was a gap within Linux and it's assortment of software. Thankyou for showng my perception was wrong.

  • @luis96xd
    @luis96xd 6 лет назад

    Wow, this is the best tutorial for Regular Expressions I've ever seen. Well explained, I was a mess with this topic, but I think I have understood. And that tool is amazing! Thank you very much!

  • @iamabishekbaiju
    @iamabishekbaiju 4 года назад

    Cool Teaching of Regex bro. I watched all other tutorials and this is the perfect one.

  • @lenac3587
    @lenac3587 5 лет назад

    Thanks for breaking it down and making Regex abit more palatable to stomach

  • @rishabhbansal8799
    @rishabhbansal8799 4 года назад

    Wonderful video. Never thought Regex would become so simple

  • @njneer
    @njneer 6 лет назад

    So by about 1/3 to 1/2 way through I was pretty confused and then it just clicked. My grep searches will be much more effective now. Thanks much for these videos.

  • @abiggerboat5361
    @abiggerboat5361 6 лет назад

    This is great! Please keep vids like this coming. I enjoy your teaching style

  • @doctors_strange
    @doctors_strange 3 года назад

    this tutorial boost confidence to understand and use regex thanks dude.

  • @kevinfreeman1101
    @kevinfreeman1101 6 лет назад

    Very nicely described! That made the whole concept surprisingly easy to grasp.

  • @Samster33
    @Samster33 6 лет назад

    Excellent video. I wish this was around 15 or so years ago when I was starting out as a programmer. I learned regular expressions very slowly one step at a time over a few years.

  • @davidcmoffatt
    @davidcmoffatt 3 года назад

    I was already pretty good with reg-ex in python but I learned a little something anyway and as always I love how you get the kernel of the topic and leave the rest for looking up when you need to.

  • @aruncr08
    @aruncr08 4 года назад

    Awesome Tutorial!!! Love the way you made it so easy understand!!! This is a must watch for anyone trying learn Regex!!

  • @jacobbrown1445
    @jacobbrown1445 5 лет назад

    This was incredibly helpful and I feel much more comfortable with regex now. Thank you for a fantastic video

  • @josh83ification
    @josh83ification 5 лет назад

    great tutorial and great channel! also, debuggex is a lot easier to understand than some of the other regex helpers out there.

  • @reggietheroman
    @reggietheroman 5 лет назад

    Great explanation! I always struggle understanding regex but you explained it in a way that was good enough for me!

  • @drumrboynoid
    @drumrboynoid 5 лет назад

    Thanks for the video. The debuggex tool looks very helpful. Please more videos on this. I'm taking a Unix/Linux course right now and its way harder than I ever imagined. Its very discouraging.

  • @magfal
    @magfal 2 года назад

    I wrote regex rules for a living for a few years, the difference between being adequate and being excellent at it is huge.
    Having something like debugex at that point in my life would have been a godsend.

  • @TadashiBM
    @TadashiBM 6 лет назад

    Thank you very much for helping me get over my fear of regular expression syntax.

  • @tmtenn9712
    @tmtenn9712 5 лет назад

    Thanks man. You taught in few minutes what i couldn’t grasp for long time. 👍

  • @maripaz5650
    @maripaz5650 4 года назад

    So great! I've always despaired of remembering regex, but this really helps!

    • @xrafter
      @xrafter 4 года назад

      Continue

  • @Topherelius
    @Topherelius 5 лет назад

    Super helpful! I'm actually going to reference this video for work and the debuggex site.

  • @ve5uo
    @ve5uo 6 лет назад

    Recently found this vid and subscribed to your channel. Great practical approach. Looking forward to watching more content. Thanks!!

  • @UziasLara
    @UziasLara 6 лет назад

    Thank you for posting this right after I was thinking I should try and learn these.

    • @EngineerMan
      @EngineerMan  6 лет назад +1

      I knew it and made it just for you!

  • @RichardOpokuEngineer
    @RichardOpokuEngineer 5 лет назад

    I didn't have to finish this video before subscribing. This is great. Thank you.

  • @PhillipMaii
    @PhillipMaii 5 лет назад

    Thanks! Best regex video I’ve come across. Well explained 👍

    • @PhillipMaii
      @PhillipMaii 5 лет назад

      Please now another one 😁

  • @ahhdum64
    @ahhdum64 6 лет назад

    Hey I just wanted to say thank you for your content, keep it up you're doing a great job!

  • @Omar-ic3wc
    @Omar-ic3wc 5 лет назад

    Engineer Man thank you very much! I finally understood regular expressions, you did it!! Thank you

  • @TrueDelta22
    @TrueDelta22 6 лет назад

    This video is a great help. To the point and now my fear of regex is gone! Mission accomplished!

  • @K2ThaYo
    @K2ThaYo 6 лет назад

    I'm happy I found your channel man, your videos are amazing. Although I'm not a software engineer, I'm looking forward to improve my coding skills to be a better system engineer. I would love to see a more advanced video showing how to search and replace with regex. Like grouping and replacing not the whole match but specific things from the match.

    • @EngineerMan
      @EngineerMan  6 лет назад

      I meant to do a part 2 of this and still intend to. Will cover lookarounds, capture groups, and search/replace.

  • @nikeshprasad5559
    @nikeshprasad5559 6 лет назад

    You really helped overcome the fear of regex. Very easy to understand from your explanation!

  • @RocketLR
    @RocketLR 6 лет назад

    I looooove Reggex so much. I dont know why but i just find it so much fun when i need to use it.

  • @PeterB_
    @PeterB_ 5 лет назад

    Watched your video trolling the craigslist spammer and your web scraping vid with python and bs4. I wanted to comment "can you do a tutorial on regex?" but remembered the first rule of asking questions... well, there's already an answer, and here it is. thanks for this!

  • @Installator1
    @Installator1 3 года назад

    just stumbled upon your video: brilliant! I'm not scared anymore 🙏🏼

  • @mheatwole18
    @mheatwole18 5 лет назад

    Excellent video! Thank You for sharing a well explained reg-ex presentation.

  • @angeloMeng
    @angeloMeng 5 лет назад +1

    Best regex tutorial

  • @aniket00796
    @aniket00796 6 лет назад

    I've been using regex in python, and this was the best tutorial i came across.

  • @trelligan42
    @trelligan42 6 лет назад

    Finally, an understandable intro to Regex. More!
    {Subscribing now.}

  • @JuliusAlphonso
    @JuliusAlphonso 6 лет назад +14

    Whoa, this really cleared up a lot!

  • @KellenChase
    @KellenChase 6 лет назад

    You sir, deserve a thumbs up and a subscribe. Great tutorial on regex and thank you for that resource.

  • @darshanmm9
    @darshanmm9 5 лет назад

    Excellent explanation I ever seen regarding to regex:) Loved it:)

  • @pdeswardt
    @pdeswardt 5 лет назад

    Brilliant explanation ! Thanks so much - I understand Regex so much better now !

  • @leethomas9549
    @leethomas9549 6 лет назад

    Wonderfully simple explanation, RegEx I fear thee not any longer!

  • @laxlyfters8695
    @laxlyfters8695 6 лет назад

    How on Dafuq this channel not at 1M subscribers. I just ran into your channel I have been binging. Engineer Man I am broke and working hard to break into Tech. I know need to work hard. Thank you for making content for people like me that want to get ahead.

    • @EngineerMan
      @EngineerMan  6 лет назад +1

      Eyes on the prize. Stay commuted, don't give up, and you'll get there.

  • @peterwright445
    @peterwright445 5 лет назад +4

    Just wanted to say that your channel is excellent. This demystified regex for me.

  • @erikpolano7680
    @erikpolano7680 6 лет назад

    Amazingly clear explanation! Thank you so much for a really great tutorial. I will definitely use debuggex in the future. I have liked the video and subscribed to your channel!

  • @praveshjoshi9347
    @praveshjoshi9347 5 лет назад

    Simplest explanation ever !!! Thank you Engineer Man !!!

  • @DaRanged
    @DaRanged 6 лет назад +2

    Great tutorial and thanks for linking that tool. It's really useful :)