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

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

O'Reilly

O'Reilly

11 жыл бұрын

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 жыл бұрын
Day 1 of RegEx: Confused...
@VictoryChang
@VictoryChang 5 жыл бұрын
Excellent talk. Found the challenges and performance tips very useful. Thanks!
@cetti4405
@cetti4405 7 жыл бұрын
you explained this for me very well. Thank you!
@yanistancheva3076
@yanistancheva3076 8 жыл бұрын
Thank you so much for your talk, makes everything much clear now xx
@kayvankazeminejad9992
@kayvankazeminejad9992 9 жыл бұрын
Excellent presentation. Thank you
@TurboRSV
@TurboRSV 10 жыл бұрын
Supernice! Was waiting for such simple explanation to RegEx!
@VictorRivas_vctr
@VictorRivas_vctr 9 жыл бұрын
HUGE THANK YOU YOU'VE EARNED A NEW FAN! JUST AMAZING!!
@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!
@haalin5359
@haalin5359 10 жыл бұрын
This is great tutorial very clear and easy to follow. Thanks for sharing!!!
@uhoh007
@uhoh007 5 жыл бұрын
Tour de force. Wonderful, imspiring presentation. Thank You!
@cristianAndrs
@cristianAndrs 11 жыл бұрын
Lea talks so clear i can understand every single word. This is an excelent conference.
@gherbihicham8506
@gherbihicham8506 8 жыл бұрын
Very good reviewing material, and a very good presenter if i do say so myself.
@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.
@FlashManinSpace
@FlashManinSpace 8 жыл бұрын
Best video on regular expression ever!
@sherylbee8634
@sherylbee8634 8 жыл бұрын
😂 you're my hero!!
@HugoPineda83
@HugoPineda83 7 жыл бұрын
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:)
@AnthonyDev
@AnthonyDev 10 ай бұрын
Nowadays this would be called "the regexp crash course". Thanks. 😊
@jasusyb2734
@jasusyb2734 8 жыл бұрын
Thx for your talk!
@hydtechietalks3607
@hydtechietalks3607 2 жыл бұрын
ORIELLY is THE BEST in books, even talks after this...Hats OFF!!
@rahmantanvir99
@rahmantanvir99 7 жыл бұрын
Best regular expression tutorial,i have ever found......
@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.
@CarryShout91
@CarryShout91 6 жыл бұрын
great presentation! very clear and useful :)
@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.
@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
@evgenylevchenya8734
@evgenylevchenya8734 3 жыл бұрын
Very clean. Thanks
@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.
@efi13efi
@efi13efi 8 жыл бұрын
Thanks Lea!
@jiyeesheng8968
@jiyeesheng8968 10 жыл бұрын
Great talks. much pratical.
@georgigeorgiev2219
@georgigeorgiev2219 9 жыл бұрын
It is useful lesson for regex. Thank you. GOD bless you.
@joebazooks
@joebazooks 7 жыл бұрын
one of the best regex vids I've seen. just wish it was a bit more thorough
@RonaldsGailis
@RonaldsGailis 11 жыл бұрын
Great talk!
@vahidrajaei4095
@vahidrajaei4095 10 жыл бұрын
Awesome :) very well done
@doug65536
@doug65536 11 жыл бұрын
Very nice work.
@devonhorner1516
@devonhorner1516 9 жыл бұрын
Great presentation and app (save the minor bug). Very motivating for me to improve my regex skills
@GanpatKakar
@GanpatKakar 8 жыл бұрын
Thank you dear for such a valuable knowledge, which saved me from failing into an interview.
@johnnycas1
@johnnycas1 6 жыл бұрын
Great class!!!!!!! Thanks!!!
@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.
@beardymonger
@beardymonger 11 жыл бұрын
Excellent presentation!!!! Few remarks: 1) pronunciation of integer 2) in some of the exercises the solution depended on tools discussed later
@AaronStagl
@AaronStagl 5 жыл бұрын
Absolutely loved the hex colors!
@Taneth
@Taneth 11 жыл бұрын
I call it "wildcards on steroids". It's one of my favourite tools.
@bogdanpintican
@bogdanpintican 10 жыл бұрын
Thank you!
@lheynlin4107
@lheynlin4107 11 жыл бұрын
I liked, because showed more than we usually see about regex, very good, I think.
@jthid
@jthid 9 жыл бұрын
awesome, thanks
@Donevigor
@Donevigor 11 жыл бұрын
Nice lecture! The false positives photo gave me a lough :).
@c0mpuipf
@c0mpuipf 7 жыл бұрын
love the swallowing sounds
@jtillery
@jtillery 11 жыл бұрын
I always find Lea Verou presentations interesting. She talks a little fast, but still very easy to understand.
@LARathbone
@LARathbone Ай бұрын
Great presentation and the slide deck blew me away. Can I hire this person to do my decks?
@AjinkyaBorade
@AjinkyaBorade 10 жыл бұрын
Lea Verou to the rescue :) Love ur simple explanations, u made tedious RegEx easy #javascript
@jbucata
@jbucata 9 жыл бұрын
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.
@kbcarte420
@kbcarte420 8 жыл бұрын
ascii puke, lol never heard that before.
@leguminosa9
@leguminosa9 5 жыл бұрын
love her
@uthappakc3073
@uthappakc3073 3 жыл бұрын
This is great if you are looking for something brief.
@adityapasari2548
@adityapasari2548 7 жыл бұрын
This is gold
@drakezen
@drakezen 11 жыл бұрын
Awesome
@WilsonMar1
@WilsonMar1 9 жыл бұрын
In this video Lea Verou dives into what many developers fear - Regular Expressions. [01:57] into this kzbin.info/www/bejne/e5zPpniJbrepl80 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.
@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!
@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.
@RemkoRoodselaar
@RemkoRoodselaar 11 жыл бұрын
Finally found that password validation expression!
@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?)
@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
@TrustNoOneEverEver
@TrustNoOneEverEver 4 жыл бұрын
She AVOIDed eyecontact during the whole talk.
@achharsh
@achharsh 11 жыл бұрын
thanks a lot..
@xaviercombelle4316
@xaviercombelle4316 11 жыл бұрын
nice talk
@StefanRitterOLD
@StefanRitterOLD 11 жыл бұрын
nice!
@syedkhaleelmyprofile
@syedkhaleelmyprofile 9 жыл бұрын
very usefull.
@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....
@zezeandjr4110
@zezeandjr4110 5 жыл бұрын
Ooh, love that "Z" Zedd.
@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.
@SandyRocks007
@SandyRocks007 8 жыл бұрын
One silly doubt is this concept same for regular expression used in any language ??? like Java etc ??
@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".
@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.
@hansf14
@hansf14 4 жыл бұрын
@39:26 it gives wrong result when it's 50. Thank you for the great lecture though.
@Rattus1
@Rattus1 7 жыл бұрын
2:10 dying for the oreilly regex book
@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.
@joydeeproy87
@joydeeproy87 7 жыл бұрын
can anyone help me where this 21:43 test link is?
@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!)
@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.
@youssefbelmeskine8059
@youssefbelmeskine8059 10 жыл бұрын
شكرا لك على هدا الشرح الرائع وكذالك على الموقع المثالي في اختبار regex
@NabeelMolham
@NabeelMolham 9 жыл бұрын
Really good into for #RegularExpressions #js #php #programminglanguages
@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.
@fdmazlum
@fdmazlum 7 жыл бұрын
They forgot the i variable for the hexcode..
@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 ....... :)
@ParantapSharma
@ParantapSharma 9 жыл бұрын
919 likes on 3 dislikes... that ought to be something good. i saw such good ratios only on Bhagat Singh videos before
@ko95
@ko95 5 жыл бұрын
neat
@notdaveschannel9843
@notdaveschannel9843 5 жыл бұрын
This is the woman who wrote Prism.js.
@JulesManson
@JulesManson 7 жыл бұрын
My God she is as beautiful as she is brainy. I think I am in love.
@Vlad-1986
@Vlad-1986 6 жыл бұрын
He, I think I'll stick to ANSI C#
@saandesh32
@saandesh32 4 жыл бұрын
this was in 2012 .. it's 2019 now ...
@SycamoreGlitch
@SycamoreGlitch 4 жыл бұрын
this was in 2019 .. it's 2020 now ...
@kkikki-jd9uo
@kkikki-jd9uo 9 жыл бұрын
she seems faster than regex.....please dont mind..
@coderwelsch
@coderwelsch 7 жыл бұрын
Loving her... :D
@Shmack_
@Shmack_ 6 жыл бұрын
This girl has the best talks and sexy voice and look!!!
@rougearlequin
@rougearlequin 6 жыл бұрын
Do most languages use the same standard for regexp?
@farhanaditya2647
@farhanaditya2647 2 жыл бұрын
yes
@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.'
@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
@KipIngram
@KipIngram 3 жыл бұрын
What a tremendously appealing young lady. :-)
@jukkrityotha8230
@jukkrityotha8230 5 жыл бұрын
other by thailand 19:25 21-4-2019
@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...
@ZekonjaPekonja
@ZekonjaPekonja 7 жыл бұрын
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
Best of Fluent 2012: Maintainable JavaScript
47:05
O'Reilly
Рет қаралды 56 М.
Regular Expression Basics
36:59
Jason Wertz
Рет қаралды 133 М.
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 36 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 9 МЛН
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 82 М.
Fluent 2014: Lea Verou, "The Humble Border-Radius"
14:00
O'Reilly
Рет қаралды 25 М.
Intro to Regular Expressions - How to use Regex in C#
55:52
IAmTimCorey
Рет қаралды 38 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 859 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 560 М.
Keeping Track of "This" in JavaScript
13:15
O'Reilly
Рет қаралды 35 М.
Avoid Using Regular Expressions!
16:18
CoderOne
Рет қаралды 4,6 М.
Ускоряем ваш TV🚀
0:44
ARTEM_CHIBA
Рет қаралды 331 М.
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2,3 МЛН
ноутбуки от 7.900 в тг laptopshoptop
0:14
Ноутбуковая лавка
Рет қаралды 3,5 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН