Regular Expression Basics

Covers grep, regular expression syntax, and a quick bit on sed.

Пікірлер: 96

  • @MichaelStoegner
    @MichaelStoegner7 жыл бұрын

    grep stands for '-g-lobally search for a -r-egular -e-xpression and -p-rint out matched lines'.

  • @dukethotness

    @dukethotness

    6 жыл бұрын

    Wow thanks

  • @shizyninjarocks
    @shizyninjarocks7 жыл бұрын

    Seriously, man, you should become a teacher. Much thanks.

  • @kevinconklin4776
    @kevinconklin47766 жыл бұрын

    Incredible. I wish all tutorials were this clear and concise. You go from blackboard teaching to ACTUAL coding and break it down piece by piece. Not copy-pasting code with barely any explanation of what is going on within the code. Keep it up, Jason!

  • @vishwanathlingam4141
    @vishwanathlingam41412 жыл бұрын

    Best video on regexp, clean and concise, thankyou very much!!

  • @harmindersandhu5756
    @harmindersandhu57567 жыл бұрын

    I had been searching for something that would explain grep, sed, and regular expression for so long, and no resource made much sense, but you made everything so clear and easy to understand. Thanks so much :)

  • @slowriot
    @slowriot6 жыл бұрын

    This video series is one of the best I've ever seen. Thanks so much for your approach. Hope to see more someday!

  • @BlackEswadeh
    @BlackEswadeh Жыл бұрын

    literally , the best straight to the point tutorial soo far

  • @ivonneterrero3454
    @ivonneterrero34547 жыл бұрын

    Beautifully done. Thanks so much for sharing your expertise. Totally worth watching.

  • @eddiecarranza9344
    @eddiecarranza93447 жыл бұрын

    Thank you for the lesson, just what I needed! Very well done Sir!

  • @gyanasahu1006
    @gyanasahu10065 жыл бұрын

    Amazing amazing tutorial!! Anytime I forget grep I will come back here. Many thanks!!

  • @ronnni1000
    @ronnni10007 жыл бұрын

    Thanks Jason , really cleared most of the things in on Reg-ex. really appreciate your time on this..

  • @yash1152
    @yash1152 Жыл бұрын

    8:56 > _"color coded command line is we can actually see [matches]"_ for those wondering, it actually is achieved by doing this (if wanted persistently, then in the bashrc file): alias grep='grep --color'

  • @jonnathannolasco8390
    @jonnathannolasco83905 жыл бұрын

    Thanks a lot for this lesson, I was afraid of even getting started with learning RegEx and this video helped me remove those fears.

  • @Ravicgsce
    @Ravicgsce8 жыл бұрын

    Hey I just spent 30 worth while minutes practicing Regular Expressions. well compiled lecture. Thank you Jason

  • @apparte462
    @apparte4623 жыл бұрын

    You are the best teacher ever, simple and to the point. If you were a girl I would have kissed you.

  • @MrBigCannoli
    @MrBigCannoli4 жыл бұрын

    Helped me so much. Taking an online course with no videos and this just saved me.

  • @facundopascual9125
    @facundopascual91257 жыл бұрын

    Just a magnificent teacher. Thx from Argentina my friend!

  • @malakumari2296
    @malakumari22964 жыл бұрын

    Thanks jason... Well compiled and explained tutorial. Cleared many of my doubts on regular exp... Many thanks

  • @streetdogg4406
    @streetdogg44066 жыл бұрын

    Thumbs up. Thanks to people like you, people are able to get smarter in computer science.

  • @prachisaxena7635
    @prachisaxena76356 жыл бұрын

    Very informative tutorial..I was giving a practice mock interview to my husband and i could answer most of the questions correct. Thanks man. bless you

  • @JustLikeRAV
    @JustLikeRAV7 жыл бұрын

    You sir are one hell of a teacher!!

  • @wkchong1
    @wkchong16 жыл бұрын

    Jason. Your video on REX is really helpful, really appreciate it.

  • @shaun_rambaran
    @shaun_rambaran8 жыл бұрын

    This was really good. Thanks for this.

  • @sanjaychty
    @sanjaychty7 жыл бұрын

    Sir you are too good...the way you teach is amazing. Very precise and to the point.

  • @dinocitozi9216
    @dinocitozi92166 жыл бұрын

    Amazing lesson Jason. Well done I will subscribe and give you thumbs up. Well done loved it

  • @mohamedsalman2323
    @mohamedsalman23232 жыл бұрын

    The perfect explanation I wish you were my professor.

  • @cybermin
    @cybermin2 жыл бұрын

    Thanks a lot! I'm studying for the CompTIA Linux exam and I have trouble understanding regular expressions. I'm gonna practice a lot, your video made it much easier to understand.

  • @utkuceylan2309
    @utkuceylan230911 ай бұрын

    Thank you, this helped a lot. Truly awesome.

  • @linuxlegion4312
    @linuxlegion43124 жыл бұрын

    One of the best tutorials in Linux

  • @aabid3677
    @aabid36774 жыл бұрын

    It's a very informative and perfect video for those who don't know anything about regex.

  • @bhaswargupta3482
    @bhaswargupta34822 жыл бұрын

    Concise,Clear,To the point

  • @MARK01986
    @MARK019863 жыл бұрын

    Please keep doing this.!!!!!!!!!!!!!!!!!!! Thank you Sr.!!

  • @koshisunuwarrai
    @koshisunuwarrai4 жыл бұрын

    Thanks. This is very helpful, to understand the basic concept of regex.

  • @dizayz
    @dizayz3 жыл бұрын

    Thank you so much for this great video👍👍👍

  • @neerajbhattt
    @neerajbhattt8 жыл бұрын

    Really excellent work. It helped me a lot...

  • @nasirali-fs3fk
    @nasirali-fs3fk4 жыл бұрын

    Thank you sooOOO much Jason! good stuff here.

  • @yabba234
    @yabba2346 жыл бұрын

    amazing video, thank you

  • @jiteshnarula9257
    @jiteshnarula92576 жыл бұрын

    WOW Nice Lecture!!

  • @LunchKid
    @LunchKid7 жыл бұрын

    Thank you! This video was helpful :)

  • @NoEgg4u
    @NoEgg4u4 жыл бұрын

    Very good video. Well done.

  • @nasirali-fs3fk
    @nasirali-fs3fk8 жыл бұрын

    jason, im sorry if i didnt express it b4, but i love you!! im sorry i meant you,ve opened my mind about regex. i really really apprecite this pal. thanks for helping people like i. God bless you bro :)

  • @sarcasmandsmacks7129
    @sarcasmandsmacks71296 жыл бұрын

    Really struggling with regex for some reason, but your tutorial is helping!

  • @ahmedalobaidy1
    @ahmedalobaidy16 жыл бұрын

    thank you so much really amazing

  • @bendeloyola9021
    @bendeloyola90216 жыл бұрын

    AWESOME!

  • @MrHammadkhalid
    @MrHammadkhalid7 жыл бұрын

    This was just an awesome lecture Please make videos professionally loads of so called high ranking training websites JUST NEEDS YOU

  • @TheGodlessGuitarist
    @TheGodlessGuitarist2 жыл бұрын

    grep stands for g/re/p which is the basic pattern form where 'g' means 'global' (not 'get'), 're' means regular expression and 'p' means print. This goes back to the early days of Unix before even System V I believe.

  • @marcisberzins

    @marcisberzins

    Жыл бұрын

    There is a Computerphile video with Brian Kernighan talking about this.

  • @davidlightman4929
    @davidlightman49292 жыл бұрын

    Very good video even though it's an oldie. It would be so great to have an update on this with more of sed and awk :-p

  • @marketer116
    @marketer116 Жыл бұрын

    great video...

  • @b0rd3n
    @b0rd3n7 жыл бұрын

    Thanks, even after few years i love to still learn stuff. Suggestion: maybe have the files you use in the examples available somewhere (put them online somewhere then archive with internet archive to make sure they are available forever)

  • @ganymedeshortride
    @ganymedeshortride3 жыл бұрын

    Just installed Linux subsystem and found this very helpful, because I used for number of years 'Windows' , didn't know to type single command in a shell, okay maybe some. Some commands match - some not at all. Thank you. * I have to mention since Ii use linux scripts I see better staff on a monitor! :) + there is a couple more sites in a search experience.

  • @DrKarrarLab
    @DrKarrarLab4 жыл бұрын

    thanks a lot !!

  • @NicolaeCristian175
    @NicolaeCristian1754 жыл бұрын

    nice tutorial! thanks

  • @gautamarora6516
    @gautamarora65163 жыл бұрын

    Why this playlist has stopped in between. We want a whole playlist with more videos on Linux kernel. You are such an awesome teacher :0

  • @Ablankname
    @Ablankname6 жыл бұрын

    Thankyou for this.

  • @twixrl644
    @twixrl6442 жыл бұрын

    THANKS A LOT HOMIE

  • @ShehabEllithy
    @ShehabEllithy8 жыл бұрын

    A doctor who fan right there.

  • @shahulrahman2516
    @shahulrahman25166 жыл бұрын

    very concise and helpful

  • @bogdanvidrean4728
    @bogdanvidrean47287 жыл бұрын

    Very good tutorial.Thank you! Just one question: Is there anything wrong if I surround my pattern with double quotes even if I don't use some special characters?

  • @shaffilali
    @shaffilali7 жыл бұрын

    Nice content

  • @hectorcasiano7469
    @hectorcasiano74695 жыл бұрын

    Go Jason go Jason!!!!

  • @deskharisma
    @deskharisma10 жыл бұрын

    Are you usually a trainger? You got great tone, vibe and way. Thank you for this :D

  • @miss-astronomikal-mcmxcvii
    @miss-astronomikal-mcmxcvii Жыл бұрын

    I still wonder why there is no abbreviated character class for vowels, like [[:vowel:]]

  • @aldolunabueno2634
    @aldolunabueno2634 Жыл бұрын

    7:45 We'll use grep until it breaks (and then we'll use egrep). 9:21 Put double quotes to avoid some non-standard character of our regex being interpreted by the shell like actually shouldn't. 34:06 The sed command filters daa for editing.

  • @schwarzchauhan
    @schwarzchauhan2 жыл бұрын

    30:59 curly brackets are parrt of the extended grep. POINT NOTED

  • @pensamentosimpuros4945
    @pensamentosimpuros49452 жыл бұрын

    Another though. if we use webscraping or wget the entire page, just above the buffer saved. we can regex the entire source for emails

  • @Perciwell
    @Perciwell Жыл бұрын

    I wonder if there is an advantage in using "-P", the perl-like regexes with grep.

  • @jinxblaze
    @jinxblaze8 жыл бұрын

    cool voice

  • @abhinavsingh9720
    @abhinavsingh97202 жыл бұрын

    Thanks

  • @sergioropo3019
    @sergioropo30196 жыл бұрын

    nice.

  • @mramosch
    @mramosch2 жыл бұрын

    When you wc -w some text of exactly 1000 words you get 1000 as a result. However when you split the same text with grep into individual words you get 1040 words because grep is splitting off the ‘s and ‘t from words like • he’s • there’s • don’t • won’t • etc. when you do • cat input_file | grep -oE '\w{1,} ' Is there a way to make grep behave like wc, or do we have to use a different strategy for getting the right (desired) result? Any ideas?

  • @tjtube263
    @tjtube2638 жыл бұрын

    Do you have any advanced Sed tutorials? The web is overflowing with intros and basics

  • @pankajkharade6936
    @pankajkharade69363 жыл бұрын

    👍👍👍👍👍👍

  • @milarovas4363
    @milarovas43634 жыл бұрын

    Is there a CLI dictionary available for Mac Terminal?

  • @lordknighton
    @lordknighton9 жыл бұрын

    This is really a good vid. I stopped at the half way point, but plan to continue tomorrow. Thanks for sharing.

  • @tonyfremont
    @tonyfremont3 жыл бұрын

    Only one "complaint" a backslash is not a slash. ;)

  • @dARTh_k3LLy
    @dARTh_k3LLy3 жыл бұрын

    How could I grep email addresses and simply return the domain name part behind the “@“?

  • @saumya7747
    @saumya77472 жыл бұрын

    Why was it necessary to keep $ at the end of the email and ^ at the start ? Will it not work with those characters ?

  • @bobbysmith1439
    @bobbysmith14395 жыл бұрын

    Great video! My only suggestion would be to pick one standard and stay with it. Example, only teach the "[0-9][a-z]" stuff. Don't include examples with the "/d /w" stuff. It just confused me.

  • @mrkiaa11
    @mrkiaa116 жыл бұрын

    where could find my dictionary in centos 7-x86

  • @rootofminusone
    @rootofminusone6 жыл бұрын

    dog - dog = dog ok got it

  • @akhileshyadav9862
    @akhileshyadav98623 жыл бұрын

    Can anyone help me to give numbers not alphanumericals

  • @yash1152
    @yash1152 Жыл бұрын

    16:57 > _"\d Not standard in grep"_ aahhhhh!!! msys2's GNU grep 3.0 doesn't has this :)

  • @shakedfish5279
    @shakedfish52798 жыл бұрын

    so the sed command doesn't change the real file, only give you the results with the replaced item you asked for.

  • @nasirali-fs3fk

    @nasirali-fs3fk

    8 жыл бұрын

    sed does the change but an option of -e has to be specified before.

  • @nasirali-fs3fk

    @nasirali-fs3fk

    8 жыл бұрын

    +nasir ali flad of -i to be corrected

  • @opendojo929
    @opendojo9296 жыл бұрын

    Very nice video! I want my file to have the project name and version. How do you this with mv? I dont have and cannot install rename. mv project-3.2-jar-with-dependencies.jar ??????? goal: project-3.2.jar

  • @avin1608
    @avin16083 жыл бұрын

    Kang bli ngerti ngacung bae...

  • @timeless-lessons
    @timeless-lessons6 жыл бұрын

    You can pull this to ur github and add it to video for further references : github.com/zeeshanu/learn-regex

  • @pensamentosimpuros4945
    @pensamentosimpuros49452 жыл бұрын

    I guess we can use awk language. The spectrum would be wide!! ]

  • @apparte462
    @apparte4623 жыл бұрын

    I would turn into gay just to marry you, very good video!!

  • @deadpl55
    @deadpl556 жыл бұрын

    Grap "//d" /path/

  • @MrDansrvx
    @MrDansrvx7 жыл бұрын

    Great video, thank you