Best of Fluent 2012: /Reg(exp){2}lained/: Demystifying Regular Expressions

Поділитися
Вставка
  • Опубліковано 7 кві 2013
  • From Fluent 2012:
    Quick, what does this do: /(\/\*?\\/)|\/\/.*?(
    ?
    |$)/g? If you're like many developers, you just averted your eyes, and your heart is now in your throat. Symptoms included sweaty palms and recurring nightmares with blood-thirsty ASCII symbols. But don't worry, this condition doesn't have to be chronic. A cure is right around the corner.
    As with many developers, you're familiar with the power of regular expressions, but anything beyond the basics scares the crap out of you. Fear no more young padawan! In this talk, we'll start with the basics and progressively enhance your knowledge until you're coding regular expressions like a champ. Everything will be demonstrated live with visual examples that ensure maximum comprehension.
    About Lea Verou
    Lea works as a Developer Advocate for W3C. She has a long-standing passion for open web standards, which she fulfills by researching new ways to use them, blogging, speaking, writing, and coding popular open source projects to help fellow developers. She is a member of the CSS Working Group, which architects the language itself. Lea studied Computer Science in Athens University of Economics and Business, where she co-organized and occasionally lectured a cutting edge Web development course for 4th year undergrads. She is one of the few misfits who love code and design equally.
    Produced by: Yasmina Grecp
    Don't miss an upload! Subscribe! goo.gl/szEauh
    Stay Connected to O'Reilly Media by Email - goo.gl/YZSWbO
    Follow O'Reilly Media:
    plus.google.com/+oreillymedia
    / oreilly
    / oreillymedia
  • Наука та технологія

КОМЕНТАРІ • 163

  • @danielwatson7540
    @danielwatson7540 8 років тому +39

    Day 1 of RegEx: Confused...

  • @SolihullRog
    @SolihullRog 3 роки тому +3

    This is absolutely mind-boggling. The sequence of the speech, coupled with the associated Playground site, demonstrate exactly how to get a message across. Currently 3.1k thumbs up and 53 thumbs down. That doesn't do it justice.

  • @VictorRivas_vctr
    @VictorRivas_vctr 9 років тому +1

    HUGE THANK YOU YOU'VE EARNED A NEW FAN!
    JUST AMAZING!!

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

    you explained this for me very well. Thank you!

  • @haalin5359
    @haalin5359 10 років тому +2

    This is great tutorial very clear and easy to follow. Thanks for sharing!!!

  • @TurboRSV
    @TurboRSV 10 років тому +2

    Supernice! Was waiting for such simple explanation to RegEx!

  • @yanistancheva3076
    @yanistancheva3076 8 років тому +1

    Thank you so much for your talk, makes everything much clear now xx

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

    Excellent talk. Found the challenges and performance tips very useful. Thanks!

  • @raditz2488
    @raditz2488 4 роки тому +3

    6:17 a subtle note on greediness of regex, It wants to match one or none a with as much content it can traverse, so ti traverses to the last a and picks that as a match.
    7:45 Reversing greediness by using '?' after a quantifier(note: \w now supports unicode as well in re engines, to revert back to old only ascii aware mode enable /a flag.)
    12:52 Counting words in a string.
    20:18 Grouping with paranthesis.
    20:22 Capture effect of paranthesis.
    21:29 Disabling capturing by groups.
    27:54 Trimming a string.
    31:33 Lookahead

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

    Very good reviewing material, and a very good presenter if i do say so myself.

  • @cristianAndrs
    @cristianAndrs 11 років тому +1

    Lea talks so clear i can understand every single word. This is an excelent conference.

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

    Making sense of writing a REGEX for a n application log with complex data pattern for Fluentd brought me here, and I was not disappointed...great video!

  • @sherylbee8634
    @sherylbee8634 8 років тому +4

    😂 you're my hero!!

  • @kayvankazeminejad9992
    @kayvankazeminejad9992 9 років тому +1

    Excellent presentation. Thank you

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

    This video is so helpful. Lea is a great speaker!!

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

    Very good. Was really stuck on Reg Exp, but this really helped. Thanks a lot:)

  • @FlashManinSpace
    @FlashManinSpace 8 років тому +5

    Best video on regular expression ever!

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

    Tour de force. Wonderful, imspiring presentation. Thank You!

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

    Best regular expression tutorial,i have ever found......

  • @eniac78
    @eniac78 10 років тому +2

    Like that she notes it's usefulness for more than just coding. I use as much to search and do find and replace in my code solutions as I do in actual coding.

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

    It is useful lesson for regex. Thank you.
    GOD bless you.

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

    ORIELLY is THE BEST in books, even talks after this...Hats OFF!!

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

    This is now on my Fav Bar - could tell a bit nervous but she great - best tech youtube from a non-mouthpiece but a genuine techy (don't care about eloquence or charisma (I'm not listening to an Apple pitch for a new product) - give me what I need to know - she did). Great. Really good. Thanks O'Reilly. Thanks Lea - had to go back to find the name.

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

    one of the best regex vids I've seen. just wish it was a bit more thorough

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

    if you get the talk , you will get the title /Reg(exp){2}lained/
    smart.

    • @DaNa-px7ol
      @DaNa-px7ol 3 роки тому

      isn´t there a "p" to much?

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

      "Regexpexp" or "ained". Still don't get it.

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

    For someone with basic idea about regular expression, this is really really cool. Well explained! A total noobs may struggle though. The O'Reilly book on regex comes in handy for a total noobs.

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

    great presentation! very clear and useful :)

  • @AnthonyDev
    @AnthonyDev 10 місяців тому

    Nowadays this would be called "the regexp crash course". Thanks. 😊

  • @jasusyb2734
    @jasusyb2734 8 років тому +1

    Thx for your talk!

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

    Very clean. Thanks

  • @beardymonger
    @beardymonger 11 років тому

    Excellent presentation!!!! Few remarks:
    1) pronunciation of integer
    2) in some of the exercises the solution depended on tools discussed later

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

    I call it "wildcards on steroids". It's one of my favourite tools.

  • @GanpatKakar
    @GanpatKakar 8 років тому +1

    Thank you dear for such a valuable knowledge, which saved me from failing into an interview.

  • @jiyeesheng8968
    @jiyeesheng8968 10 років тому +1

    Great talks. much pratical.

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

    Thanks Lea!

  • @jbucata
    @jbucata 9 років тому +12

    This talk is like drinking from a firehose! It's good material and it's a useful and quick review if you've seen much of this before. But I've got people who are trying to learn programming who haven't ever seen a regex before... this would totally overwhelm them. A gentler introduction would be much better for them. But, for what it is, it's quite good.

    • @jbucata
      @jbucata 9 років тому

      Well I guess that's true. If you know if any such gentle introductions, please do share. (BTW I'm already fluent in regexes myself, I'm just on the lookout for materials to teach them to others.)

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

      Jason, yes you're right about the firehose. However, what I did is to read the Java SE 8 tutorial on regular expressions and watch the relevant parts of Lea's presentation (this video). I divided this method over several days, perhaps 10 days, only focusing on one concept at a time. That way, I was able to easily follow along and learn.

  • @devonhorner1516
    @devonhorner1516 9 років тому

    Great presentation and app (save the minor bug). Very motivating for me to improve my regex skills

  • @Donevigor
    @Donevigor 11 років тому

    Nice lecture! The false positives photo gave me a lough :).

  • @climaxcontoseroticos7682
    @climaxcontoseroticos7682 8 років тому +15

    How do you name a person who is good looking and saves your life?

    • @DurgaswaroopPerla
      @DurgaswaroopPerla 8 років тому +1

      +Clímax Contos Eróticos 'Lea Verou' would be the word(s) you're looking for :D

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

      +Durga swaroop Perla XD But what if her voice just makes me wanna kill myself

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

      pretty pretty ;D
      BTW I came across this video when I was looking for Automata online lessons!

  • @jtillery
    @jtillery 11 років тому

    I always find Lea Verou presentations interesting. She talks a little fast, but still very easy to understand.

  • @doug65536
    @doug65536 11 років тому

    Very nice work.

  • @LARathbone
    @LARathbone Місяць тому

    Great presentation and the slide deck blew me away. Can I hire this person to do my decks?

  • @RonaldsGailis
    @RonaldsGailis 11 років тому

    Great talk!

  • @SandyRocks007
    @SandyRocks007 8 років тому +1

    One silly doubt is this concept same for regular expression used in any language ??? like Java etc ??

  • @kbcarte420
    @kbcarte420 8 років тому +60

    ascii puke, lol never heard that before.

  • @shantanuborgohain8331
    @shantanuborgohain8331 4 роки тому +2

    30:42 Legend has it she got arrested after that talk.

    • @laughingalien
      @laughingalien 2 роки тому +1

      Nicely spotted, sir. Now I really love her.

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

    This video has no sound =(. All other youtube videos played simultaneously work just fine. I ended up using the subtitles, but it was very inconvenient. Otherwise, an amazing and thorough video.

  • @vahidrajaei4095
    @vahidrajaei4095 10 років тому

    Awesome :) very well done

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

    I would ask about "Quantifiers" What are they useful for excatly?
    I think they are nothing except searching in string like this "caaaaat".

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

    Great class!!!!!!! Thanks!!!

  • @lheynlin4107
    @lheynlin4107 11 років тому

    I liked, because showed more than we usually see about regex, very good, I think.

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

    Absolutely loved the hex colors!

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

    love the swallowing sounds

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

    This is great if you are looking for something brief.

  • @bogdanpintican
    @bogdanpintican 10 років тому

    Thank you!

  • @jthid
    @jthid 9 років тому

    awesome, thanks

  • @AjinkyaBorade
    @AjinkyaBorade 10 років тому +1

    Lea Verou to the rescue :) Love ur simple explanations, u made tedious RegEx easy #javascript

  • @WilsonMar1
    @WilsonMar1 9 років тому +5

    In this video Lea Verou dives into what many developers fear - Regular Expressions.
    [01:57] into this ua-cam.com/video/EkluES9Rvak/v-deo.html
    the URL that works is leaverou.github.io/regexplained/
    from source at github.com/LeaVerou/regexplained
    which is an amazing web app shown in the video.

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

    can anyone help me where this 21:43 test link is?

  • @Skatox
    @Skatox 10 років тому +2

    Si alguien quiere aprender sobre expresiones regulares, este video lo explica todo en 1 hora.

    • @AZ-rg3rf
      @AZ-rg3rf 2 роки тому

      Yo comprendo todos ahora

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

    She AVOIDed eyecontact during the whole talk.

  • @dancorvalan3205
    @dancorvalan3205 7 місяців тому

    Is there some sort of regular expression for audio processing where we could specify and therefore have removed every "ahhhh.." she does throughout the entire video? (Please!)

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

    This is gold

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

    ?: to avoid remembering the match isn't working for me in JavaScript. Not matter the variables are remembered when I access them using $1 or $2

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

      Samiullah Khan you are the only one seriously studying here

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

      Haha looks like I was really involved in this talk and it made learning of Regular Expression really easy for me.

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

    love her

  • @RemkoRoodselaar
    @RemkoRoodselaar 11 років тому

    Finally found that password validation expression!

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

    @39:26 it gives wrong result when it's 50. Thank you for the great lecture though.

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

    11:07 welcome to programming class, you've been here for as long as you can remember.
    mewo: meow (waiting for a regex lecture to happen?)

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

    I actually would think this would have been a cringeworthy thing to try to lecture, but it was pretty good. However, it was just so fast I had to redo a few things.

  • @drakezen
    @drakezen 11 років тому

    Awesome

  • @xaviercombelle4316
    @xaviercombelle4316 11 років тому

    nice talk

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

    Ooh, love that "Z" Zedd.

  • @achharsh
    @achharsh 11 років тому

    thanks a lot..

  • @RajaSekharBusapalli999
    @RajaSekharBusapalli999 9 років тому +9

    I love You.... This is very simple... the web base provides u very easy cross-verification.... its amazing and u teach awesome. u look awesome too....

  • @HartleySan
    @HartleySan 9 років тому +5

    Lea Verou is awesome and her presentation looks beautiful, but for someone learning regexes for the first time, this is way too much, too fast.

  • @syedkhaleelmyprofile
    @syedkhaleelmyprofile 9 років тому

    very usefull.

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

    Do most languages use the same standard for regexp?

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

    They forgot the i variable for the hexcode..

  • @StefanRitterOLD
    @StefanRitterOLD 11 років тому

    nice!

  • @Vlad-1986
    @Vlad-1986 6 років тому

    He, I think I'll stick to ANSI C#

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

    2:10 dying for the oreilly regex book

  • @AllSeasonsVideo
    @AllSeasonsVideo 11 років тому +1

    That is exactly why developers hate regex. It's hard to learn. This was the absolute most basic way one could explain regex.

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

    11:56 oh noes, please don't put - in the middle of [] because someone is going to create a bug from that.

  • @saandesh32
    @saandesh32 4 роки тому +3

    this was in 2012 .. it's 2019 now ...

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

    919 likes on 3 dislikes... that ought to be something good. i saw such good ratios only on Bhagat Singh videos before

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

    This video makes me dizzy, is there any cheatsheet available out there?

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

      cmd + t, "regex cheatsheet", enter -> first result; would have used less time and characters then writing this comment...

  • @asmartbajan
    @asmartbajan 10 років тому

    Really good tutorial. Btw, the "g" in "integer" is followed by an "e". So, it's pronounced somewhat like the "j" in "jam" and not like the "g" in "grammar". (Of course, with English there are always exceptions to the rule but the pronunciation of "integer" follows the rule.)

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

      +Wayne Phillips She is from Greece ....... :)

  • @youssefbelmeskine8059
    @youssefbelmeskine8059 10 років тому

    شكرا لك على هدا الشرح الرائع وكذالك على الموقع المثالي في اختبار regex

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

    The UI looks awesome! Can someone tell me what software or website is she using?

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

      +CUN006 leaverou.github.io/regexplained/

    • @CUN006
      @CUN006 8 років тому +1

      +Michael Thelen OMG that saves my life! May I ask how did you find it in the first place?

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

      +CUN006 luck. Was clicking all her links, checked out her github, happened to open the README. :D

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

      +Michael Thelen Way to go man!

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

      Kile Maximum All right found it. Thx

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

    This is the woman who wrote Prism.js.

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

    My God she is as beautiful as she is brainy. I think I am in love.

  • @NabeelMolham
    @NabeelMolham 9 років тому

    Really good into for #RegularExpressions #js #php #programminglanguages

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

    why most people are scared of Regex.. Apparently I am too. Watching tutorials are like 'Oh yup I got it.'. When doing it myself is like ..'urrhh...i guess i should watch more tutorials.'

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

    Loving her... :D

  • @kkikki-jd9uo
    @kkikki-jd9uo 9 років тому

    she seems faster than regex.....please dont mind..

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

    neat

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

    This girl has the best talks and sexy voice and look!!!

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

    What a tremendously appealing young lady. :-)

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

    other by thailand 19:25 21-4-2019

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

    Love the way she pulls her hairs