No video

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

  Рет қаралды 219,307

O'Reilly

O'Reilly

Күн бұрын

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...
/ oreilly
/ oreillymedia

Пікірлер: 163
@SolihullRog
@SolihullRog 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.
@raditz2488
@raditz2488 4 жыл бұрын
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
@rahmantanvir99
@rahmantanvir99 7 жыл бұрын
Best regular expression tutorial,i have ever found......
@eniac78
@eniac78 10 жыл бұрын
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.
@danielwatson7540
@danielwatson7540 8 жыл бұрын
Day 1 of RegEx: Confused...
@cristianAndrs
@cristianAndrs 11 жыл бұрын
Lea talks so clear i can understand every single word. This is an excelent conference.
@hydtechietalks3607
@hydtechietalks3607 2 жыл бұрын
ORIELLY is THE BEST in books, even talks after this...Hats OFF!!
@FlashManinSpace
@FlashManinSpace 8 жыл бұрын
Best video on regular expression ever!
@bonduu01
@bonduu01 5 жыл бұрын
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!
@AnthonyDev
@AnthonyDev 11 ай бұрын
Nowadays this would be called "the regexp crash course". Thanks. 😊
@GanpatKakar
@GanpatKakar 8 жыл бұрын
Thank you dear for such a valuable knowledge, which saved me from failing into an interview.
@kayvankazeminejad9992
@kayvankazeminejad9992 9 жыл бұрын
Excellent presentation. Thank you
@joebazooks
@joebazooks 7 жыл бұрын
one of the best regex vids I've seen. just wish it was a bit more thorough
@cetti4405
@cetti4405 7 жыл бұрын
you explained this for me very well. Thank you!
@jbucata
@jbucata 10 жыл бұрын
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.
@georgigeorgiev2219
@georgigeorgiev2219 9 жыл бұрын
It is useful lesson for regex. Thank you. GOD bless you.
@TurboRSV
@TurboRSV 10 жыл бұрын
Supernice! Was waiting for such simple explanation to RegEx!
@gherbihicham8506
@gherbihicham8506 8 жыл бұрын
Very good reviewing material, and a very good presenter if i do say so myself.
@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.
@engelshentenawy
@engelshentenawy 7 жыл бұрын
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.
@sherylbee8634
@sherylbee8634 9 жыл бұрын
😂 you're my hero!!
@hassanawodi5888
@hassanawodi5888 7 жыл бұрын
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.
@Taneth
@Taneth 11 жыл бұрын
I call it "wildcards on steroids". It's one of my favourite tools.
@HugoPineda83
@HugoPineda83 7 жыл бұрын
This video is so helpful. Lea is a great speaker!!
@haalin5359
@haalin5359 10 жыл бұрын
This is great tutorial very clear and easy to follow. Thanks for sharing!!!
@beardymonger
@beardymonger 11 жыл бұрын
Excellent presentation!!!! Few remarks: 1) pronunciation of integer 2) in some of the exercises the solution depended on tools discussed later
@VictorRivas_vctr
@VictorRivas_vctr 9 жыл бұрын
HUGE THANK YOU YOU'VE EARNED A NEW FAN! JUST AMAZING!!
@shantanuborgohain8331
@shantanuborgohain8331 4 жыл бұрын
30:42 Legend has it she got arrested after that talk.
@laughingalien
@laughingalien 2 жыл бұрын
Nicely spotted, sir. Now I really love her.
@climaxcontoseroticos7682
@climaxcontoseroticos7682 8 жыл бұрын
How do you name a person who is good looking and saves your life?
@DurgaswaroopPerla
@DurgaswaroopPerla 8 жыл бұрын
+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!
@yanistancheva3076
@yanistancheva3076 8 жыл бұрын
Thank you so much for your talk, makes everything much clear now xx
@uhoh007
@uhoh007 5 жыл бұрын
Tour de force. Wonderful, imspiring presentation. Thank You!
@LARathbone
@LARathbone 2 ай бұрын
Great presentation and the slide deck blew me away. Can I hire this person to do my decks?
@DanMaxmusic
@DanMaxmusic 7 жыл бұрын
Very good. Was really stuck on Reg Exp, but this really helped. Thanks a lot:)
@VictoryChang
@VictoryChang 6 жыл бұрын
Excellent talk. Found the challenges and performance tips very useful. Thanks!
@jiyeesheng8968
@jiyeesheng8968 10 жыл бұрын
Great talks. much pratical.
@kbcarte420
@kbcarte420 8 жыл бұрын
ascii puke, lol never heard that before.
@uthappakc3073
@uthappakc3073 3 жыл бұрын
This is great if you are looking for something brief.
@c0mpuipf
@c0mpuipf 7 жыл бұрын
love the swallowing sounds
@WilsonMar1
@WilsonMar1 9 жыл бұрын
In this video Lea Verou dives into what many developers fear - Regular Expressions. [01:57] into this kzfaq.info/get/bejne/e9GcqKiEnrjakZ8.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.
@jtillery
@jtillery 11 жыл бұрын
I always find Lea Verou presentations interesting. She talks a little fast, but still very easy to understand.
@lheynlin4107
@lheynlin4107 11 жыл бұрын
I liked, because showed more than we usually see about regex, very good, I think.
@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.
@AllSeasonsVideo
@AllSeasonsVideo 11 жыл бұрын
That is exactly why developers hate regex. It's hard to learn. This was the absolute most basic way one could explain regex.
@evgenylevchenya8734
@evgenylevchenya8734 3 жыл бұрын
Very clean. Thanks
@AjinkyaBorade
@AjinkyaBorade 10 жыл бұрын
Lea Verou to the rescue :) Love ur simple explanations, u made tedious RegEx easy #javascript
@devonhorner1516
@devonhorner1516 9 жыл бұрын
Great presentation and app (save the minor bug). Very motivating for me to improve my regex skills
@RajaSekharBusapalli999
@RajaSekharBusapalli999 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....
@CarryShout91
@CarryShout91 6 жыл бұрын
great presentation! very clear and useful :)
@TrustNoOneEverEver
@TrustNoOneEverEver 4 жыл бұрын
She AVOIDed eyecontact during the whole talk.
@jasusyb2734
@jasusyb2734 8 жыл бұрын
Thx for your talk!
@AaronStagl
@AaronStagl 5 жыл бұрын
Absolutely loved the hex colors!
@Skatox
@Skatox 10 жыл бұрын
Si alguien quiere aprender sobre expresiones regulares, este video lo explica todo en 1 hora.
@AZ-rg3rf
@AZ-rg3rf 2 жыл бұрын
Yo comprendo todos ahora
@Donevigor
@Donevigor 11 жыл бұрын
Nice lecture! The false positives photo gave me a lough :).
@davisdoesgamesreal
@davisdoesgamesreal Жыл бұрын
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?)
@HartleySan
@HartleySan 9 жыл бұрын
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.
@dancorvalan3205
@dancorvalan3205 8 ай бұрын
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!)
@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 ....... :)
@efi13efi
@efi13efi 8 жыл бұрын
Thanks Lea!
@RemkoRoodselaar
@RemkoRoodselaar 11 жыл бұрын
Finally found that password validation expression!
@SandyRocks007
@SandyRocks007 8 жыл бұрын
One silly doubt is this concept same for regular expression used in any language ??? like Java etc ??
@vahidrajaei4095
@vahidrajaei4095 10 жыл бұрын
Awesome :) very well done
@ParantapSharma
@ParantapSharma 10 жыл бұрын
919 likes on 3 dislikes... that ought to be something good. i saw such good ratios only on Bhagat Singh videos before
@jumpieva
@jumpieva 8 жыл бұрын
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.
@johnnycas1
@johnnycas1 6 жыл бұрын
Great class!!!!!!! Thanks!!!
@JulesManson
@JulesManson 7 жыл бұрын
My God she is as beautiful as she is brainy. I think I am in love.
@RonaldsGailis
@RonaldsGailis 11 жыл бұрын
Great talk!
@doug65536
@doug65536 11 жыл бұрын
Very nice work.
@hudatolah
@hudatolah 2 жыл бұрын
I am bit perplexed at her attitude. Regex has been around for 30 years or more and she is presenting it like she invented it. I am glad she is doing this refresher course.
@jthid
@jthid 9 жыл бұрын
awesome, thanks
@leguminosa9
@leguminosa9 5 жыл бұрын
love her
@bogdanpintican
@bogdanpintican 10 жыл бұрын
Thank you!
@saandesh32
@saandesh32 5 жыл бұрын
this was in 2012 .. it's 2019 now ...
@SycamoreGlitch
@SycamoreGlitch 4 жыл бұрын
this was in 2019 .. it's 2020 now ...
@adityapasari2548
@adityapasari2548 7 жыл бұрын
This is gold
@zezeandjr4110
@zezeandjr4110 5 жыл бұрын
Ooh, love that "Z" Zedd.
@notdaveschannel9843
@notdaveschannel9843 5 жыл бұрын
This is the woman who wrote Prism.js.
@hansf14
@hansf14 5 жыл бұрын
@39:26 it gives wrong result when it's 50. Thank you for the great lecture though.
@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.
@youssefbelmeskine8059
@youssefbelmeskine8059 10 жыл бұрын
شكرا لك على هدا الشرح الرائع وكذالك على الموقع المثالي في اختبار regex
@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".
@NabeelMolham
@NabeelMolham 10 жыл бұрын
Really good into for #RegularExpressions #js #php #programminglanguages
@SamiullahKhan
@SamiullahKhan 7 жыл бұрын
?: 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 жыл бұрын
Samiullah Khan you are the only one seriously studying here
@SamiullahKhan
@SamiullahKhan 7 жыл бұрын
Haha looks like I was really involved in this talk and it made learning of Regular Expression really easy for me.
@drakezen
@drakezen 11 жыл бұрын
Awesome
@fdmazlum
@fdmazlum 8 жыл бұрын
They forgot the i variable for the hexcode..
@Shmack_
@Shmack_ 6 жыл бұрын
This girl has the best talks and sexy voice and look!!!
@jimtonykiller
@jimtonykiller 7 жыл бұрын
Love the way she pulls her hairs
@xaviercombelle4316
@xaviercombelle4316 11 жыл бұрын
nice talk
@Rattus1
@Rattus1 7 жыл бұрын
2:10 dying for the oreilly regex book
@syedkhaleelmyprofile
@syedkhaleelmyprofile 9 жыл бұрын
very usefull.
@achharsh
@achharsh 11 жыл бұрын
thanks a lot..
@coffeebutch
@coffeebutch 7 жыл бұрын
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.'
@kkikki-jd9uo
@kkikki-jd9uo 9 жыл бұрын
she seems faster than regex.....please dont mind..
@Vlad-1986
@Vlad-1986 6 жыл бұрын
He, I think I'll stick to ANSI C#
@joydeeproy87
@joydeeproy87 7 жыл бұрын
can anyone help me where this 21:43 test link is?
@KipIngram
@KipIngram 3 жыл бұрын
What a tremendously appealing young lady. :-)
@StefanRitterOLD
@StefanRitterOLD 11 жыл бұрын
nice!
@coderwelsch
@coderwelsch 8 жыл бұрын
Loving her... :D
@dharmitvyas8547
@dharmitvyas8547 10 жыл бұрын
she is beautiful !!!!
@zebbrafta8210
@zebbrafta8210 9 жыл бұрын
i came here to see this
@Hugo-zk6vu
@Hugo-zk6vu 6 жыл бұрын
Dude, each time you say something like this in a video where beauty is irrelevant to the task, you add one point to "future forced feminism" Lifebar.
@rougearlequin
@rougearlequin 6 жыл бұрын
Do most languages use the same standard for regexp?
@farhanaditya2647
@farhanaditya2647 2 жыл бұрын
yes
@ZekonjaPekonja
@ZekonjaPekonja 8 жыл бұрын
that neurotic drinking...
@ballercat
@ballercat 7 жыл бұрын
For sure walk away from the mic when eating/drinking. Couldn't make it through the video.
@doodoostickstain
@doodoostickstain 7 жыл бұрын
that considered, i'm impressed you made it to the comments section, where more annoying things commonly occur. usually lots of contributors in that regard *cough* >_>
@ballercat
@ballercat 7 жыл бұрын
Well yeah... Wouldn't you wanted to check if someone else reacted the same way? Not really that impressive. Besides I din't think the video had poor content, just that the gulping of water into the mic was super unpleasant. Obviously I wasn't the only one /shrug
@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 жыл бұрын
+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
Best of Fluent 2012: Maintainable JavaScript
47:05
O'Reilly
Рет қаралды 56 М.
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 10 МЛН
娜美这是在浪费食物 #路飞#海贼王
00:20
路飞与唐舞桐
Рет қаралды 5 МЛН
Мы сделали гигантские сухарики!  #большаяеда
00:44
Fluent 2014: Lea Verou, "The Humble Border-Radius"
14:00
O'Reilly
Рет қаралды 25 М.
Regular Expression Basics
36:59
Jason Wertz
Рет қаралды 133 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 552 М.
Demystifying Regular Expressions
41:31
Howard Abrams
Рет қаралды 9 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 334 М.
Avoid Using Regular Expressions!
16:18
CoderOne
Рет қаралды 4,7 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Regular Expressions (Regex) Tutorial: How to Match Any Pattern of Text
37:55
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 10 МЛН