Regex Tutorial for Beginners

In this regex tutorial for beginners, we learn why regex is important to us as programmers - who identify and abstract patterns, regex builds on that knowledge as well as re-enforces it. We cover the idea of regex as well as the base syntax by going over a couple of examples.
Patreon 🤝 / raw_coding
Courses 📚 learning.raw-coding.dev
Shop 🛒 shop.raw-coding.dev
Discord 💬 / discord
Twitter 📣 / anton_t0shik
Twitch 🎥 / raw_coding
regex101.com/
Remember to try to look back at your own code - and see where you can apply it.
#regex #tutorial #programming

Пікірлер: 48

  • @Myself0094
    @Myself00943 жыл бұрын

    My gosh, I thought I should finally learn regex just yesterday, probably a thousandth time. And you make a video about it right now! Man you're awesome!

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Hope you enjoy it

  • @Praveen.Kumar.
    @Praveen.Kumar.3 жыл бұрын

    You chose a really interesting topic to explain.. Thank you very much!

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Thank you for watching)

  • @sorajhin
    @sorajhin2 жыл бұрын

    bruh. this is really something cool to learn. I've been dealing with like capturing a certain string within some file or output and just googling what I need. but this just makes it easier :D good job! you earned a sub!

  • @lemoncinnamon3227
    @lemoncinnamon32273 жыл бұрын

    I remember asking for what I can use for validating specific email domains in your discord server. Many thanks for this!

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Thank you for watching

  • @TheShadowArtCom
    @TheShadowArtCom2 жыл бұрын

    I've been using Regex for probably around a decade. And by using I mean copy pasting from google every time or just lazily using .*? or something. But after watching your video once or thrice, I actually get it now. Thank you, subscribed.

  • @michaelhochriegl9501
    @michaelhochriegl95013 жыл бұрын

    Awesome tut Anton! I always struggle with Regex, but now a few things a clearer. Especially the last part where you did the command example helped to showcase some stuff you previously described. Hope that this will lead up to a follow up where you show some stuff for intermediates and lastly expert.

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Anything beyond this is edge case rather than expert or intermediate.

  • @datagus
    @datagus8 ай бұрын

    Brother, regex was even worse than learning German. Thank you a lot for this crystal clear tutorial

  • @frankyhonnolus5528
    @frankyhonnolus55282 жыл бұрын

    Very helpful. Thank you so much!

  • @clearlyunwell
    @clearlyunwell3 жыл бұрын

    👍🏽 succinct and beautifully explained, thank you!

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Thank you

  • @IndieBeto
    @IndieBeto3 жыл бұрын

    Hey man, this is exactly what I was looking for. I am currently working with tires, which have a pattern of numbers and specific brand. This will help me to understand it better, because I was using a pattern I found stack overflow (LUL). See you on stream soon! PS: That beard is growing solid bruh, keep it going.

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Ey Indiebeto cheers )

  • @janblazek2151
    @janblazek21513 жыл бұрын

    Another amazing video!

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Thank you for watching)

  • @pradeeplokhande7392
    @pradeeplokhande73922 жыл бұрын

    It's very useful. Thanks for a great time

  • @RawCoding

    @RawCoding

    2 жыл бұрын

    Thank you for watching

  • @Rapchik-Studio
    @Rapchik-Studio2 жыл бұрын

    I just noticed a sensitive pic near the door. 😌😌

  • @RawCoding

    @RawCoding

    2 жыл бұрын

    It’s appropriate not sensitive

  • @tharindusenevirathna3070
    @tharindusenevirathna30703 жыл бұрын

    Very useful bro... learned lot of things. 🤘

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Glad to hear )

  • @nove1398
    @nove13983 жыл бұрын

    Love this video

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Thank you for watching

  • @georget10i
    @georget10i3 жыл бұрын

    Excellent tutorial, thank you! I didn't think I'd be able to sit through a 40 minute video, but your explanation and pace is so good that it was easy. I have one question though. At 25:06, you explain that if you put square brackets around parenthesis, it just becomes a regular character. I don't understand why are, e, a, x, 4, 3 selected? Is it that it matches any 1 character? I removed the parenthesis inside and it still matched the same pattern.

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Cheers, those characters get matched because of \w which is equivalent to [a-zA-Z0-9_]

  • @georget10i

    @georget10i

    3 жыл бұрын

    That was quick! I played around with it a bit more and understood. It'll match any character with \w, but also the (, ), ^, and + because they're captured in the group too, so stop being special tokens and become literal characters that are captured. Thank you!

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    You got it

  • @egroegknimmij3169
    @egroegknimmij31692 жыл бұрын

    Does anybody know what the List pane under Functions from the left tool pane does? I checked its wiki, what's new list, but no concluding description. Also tried to fiddle with it, but nothing happens, other than it equals the typed text, under the note of processing. Or if it matches 8 times, it types out my entry 8 times. What is the point of this tool, or better: how to use it properly as intended? Thanks in advance.

  • @chefbennyj
    @chefbennyj3 жыл бұрын

    If someone made a giant cheat sheet poster for regular expressions, I would frame it on the wall of my office. 😳

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Cheat sheets are over rated )

  • @chefbennyj

    @chefbennyj

    3 жыл бұрын

    @@RawCoding agreed 😆 thanks for this tutorial. It will be invaluable.

  • @SaveTheHedgehog
    @SaveTheHedgehog2 жыл бұрын

    Why didn't you use linqpad's regex till in this video? Can you make a video of all the possibilities of linqpad program?

  • @RawCoding

    @RawCoding

    2 жыл бұрын

    I don’t use it, and no because I don’t know all of em ) there are tutorials built in to LinqPad tho

  • @SaveTheHedgehog

    @SaveTheHedgehog

    2 жыл бұрын

    @@RawCoding ok, clear but thanks i like you

  • @stefanioan7569
    @stefanioan75693 жыл бұрын

    Hi Anton 👍

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Yo Stefan )

  • @xpilarz0
    @xpilarz03 жыл бұрын

    make video about web scraping you mentioned in this video. thx

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    What type of web scraping are you interested in?

  • @xpilarz0

    @xpilarz0

    3 жыл бұрын

    @@RawCoding how to get data that is not nicely formatted from the page among html tags and how to take into account pagination of pages (data provided in chunks) and how to protect yourself from modifying the DOM structure. So far I have used regex for this, but maybe there is a better way? Maybe it would be better to read the data directly from the requests, but some sites provide pages with data already baked in. Also there is a problem with encoding.

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    Gotcha thank you

  • @sport_people_life
    @sport_people_life3 жыл бұрын

    How can I contact with you?

  • @RawCoding

    @RawCoding

    3 жыл бұрын

    I’m sure you’ll figure it out

  • @dreamdancer8212
    @dreamdancer82122 жыл бұрын

    Very interesting topic but unfortunately a very confusing and erratic way of explaining. Starting to explain one thing- jumping to another thought and continuing with another eplanation - and having a third thought that we introduce quickly only to go back to the first thought without ending it again. A little bit of pre-defined structure would have enhanced the tutorial massively

  • @RawCoding

    @RawCoding

    2 жыл бұрын

    thank you for the feedback