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
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
3 жыл бұрын
Hope you enjoy it
You chose a really interesting topic to explain.. Thank you very much!
@RawCoding
3 жыл бұрын
Thank you for watching)
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!
I remember asking for what I can use for validating specific email domains in your discord server. Many thanks for this!
@RawCoding
3 жыл бұрын
Thank you for watching
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.
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
3 жыл бұрын
Anything beyond this is edge case rather than expert or intermediate.
Brother, regex was even worse than learning German. Thank you a lot for this crystal clear tutorial
Very helpful. Thank you so much!
👍🏽 succinct and beautifully explained, thank you!
@RawCoding
3 жыл бұрын
Thank you
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
3 жыл бұрын
Ey Indiebeto cheers )
Another amazing video!
@RawCoding
3 жыл бұрын
Thank you for watching)
It's very useful. Thanks for a great time
@RawCoding
2 жыл бұрын
Thank you for watching
I just noticed a sensitive pic near the door. 😌😌
@RawCoding
2 жыл бұрын
It’s appropriate not sensitive
Very useful bro... learned lot of things. 🤘
@RawCoding
3 жыл бұрын
Glad to hear )
Love this video
@RawCoding
3 жыл бұрын
Thank you for watching
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
3 жыл бұрын
Cheers, those characters get matched because of \w which is equivalent to [a-zA-Z0-9_]
@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
3 жыл бұрын
You got it
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.
If someone made a giant cheat sheet poster for regular expressions, I would frame it on the wall of my office. 😳
@RawCoding
3 жыл бұрын
Cheat sheets are over rated )
@chefbennyj
3 жыл бұрын
@@RawCoding agreed 😆 thanks for this tutorial. It will be invaluable.
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
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
2 жыл бұрын
@@RawCoding ok, clear but thanks i like you
Hi Anton 👍
@RawCoding
3 жыл бұрын
Yo Stefan )
make video about web scraping you mentioned in this video. thx
@RawCoding
3 жыл бұрын
What type of web scraping are you interested in?
@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
3 жыл бұрын
Gotcha thank you
How can I contact with you?
@RawCoding
3 жыл бұрын
I’m sure you’ll figure it out
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
2 жыл бұрын
thank you for the feedback