2.6: Regular Expressions: test() and match() - Programming with Text

  Рет қаралды 94,681

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 83
@alexberloffe
@alexberloffe 6 жыл бұрын
Thank you for transforming "rocket science" into something reachable to the ordinary humans like myself.
@HamiltonFilmsNYC
@HamiltonFilmsNYC 6 жыл бұрын
Your mastery of regex baffles me. I really thought this was one of those JavaScript concepts that people just copy-paste the commonly used community code. You've allowed my mind to understand it and create my own regex at will as necessary. Thank you!
@josephh8117
@josephh8117 Жыл бұрын
The "g" flag thing saved my butt when I didn't understand what match() was outputting. Thank you, my friend.
@ngamama105
@ngamama105 7 жыл бұрын
just watch your tutorial .as a french speaking person,l must say it's fun and it's make me impove both in english and programming.l wish to have you as my personal teacher.
@MYKhanFromThe90s
@MYKhanFromThe90s 4 жыл бұрын
My man’s been trying to get phone numbers, and even teaches how to do it... What a great man!
@senpaicore925
@senpaicore925 6 жыл бұрын
I'm really glad that I have found your video series about regular expressions. It helped me to solve the riddle. Yeay!
@tradewithcpr1464
@tradewithcpr1464 3 жыл бұрын
This is the best channel in youtube for /regex/g
@tgoralczyk1
@tgoralczyk1 8 жыл бұрын
your content is awesome, wish you were teaching at my school lol, thanks for these great videos!
@obinnaukoofe8626
@obinnaukoofe8626 3 жыл бұрын
4years ago, knowledge passed is still eternity
@EsRicardo
@EsRicardo 3 жыл бұрын
I'm not even a great english understander and I understood every part of this video
@TheEletricboy
@TheEletricboy 2 жыл бұрын
Very nicely paced class and very intuitive, even at 1.25x speed. I personally dislike a lot of the "jokes" like vegan cupcakes for example but that's a personal choice of mine when viewing coding videos, don't be deterred I know this may help lighten things up for certain students. Good job sir 👍
@TheCodingTrain
@TheCodingTrain 2 жыл бұрын
Thank you for the feedback!
@knifeninja200000
@knifeninja200000 2 жыл бұрын
ngl i was a little worried that the first 6 videos of this series were just a coding tangent and wouldn't actually be used in p5js. Thank you for all the knowledge once again
@mr.yanlucena8463
@mr.yanlucena8463 7 жыл бұрын
The very best professor out there.
@curious_mind6941
@curious_mind6941 4 жыл бұрын
You're the best man! I really like your sense of humor.
@Oleg-ci9bj
@Oleg-ci9bj 6 жыл бұрын
Really awesome tutorials for Regex. Thanks for putting all the effort into this!
@tiNgk0y1
@tiNgk0y1 5 жыл бұрын
very active coding lesson, bless you sir.. I learned a cool knowledge today
@haydenkarkainen1167
@haydenkarkainen1167 8 жыл бұрын
An absolutely great series! Keep going I love it!
@sipporatoppo1340
@sipporatoppo1340 4 жыл бұрын
I finally understand. I like your teaching style and you are too funny 😬😇🤩. Thank you
@reimarpb
@reimarpb 6 жыл бұрын
If you want to get the number of matches, just use _s.match(r).length;_
@goodstuffsonly2545
@goodstuffsonly2545 3 жыл бұрын
Great video sir.enjoyed ur teaching.
@JA-ki3fh
@JA-ki3fh 6 жыл бұрын
I just wanted to say thank you for these videos and your course. the website is amazing. Thank you so much for allowing others to learn!!!! I hope give back like this someday. P.S now I need a buttery cupcake :)
@zainebqadiri5155
@zainebqadiri5155 5 жыл бұрын
Thank you sooooo much Daniel !!
@Richa801
@Richa801 7 жыл бұрын
thanks for such wonderful session :)
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Thanks for watching!
@YuriLifeLove
@YuriLifeLove 4 жыл бұрын
This is exactly what I need...
@desfazuele2554
@desfazuele2554 3 жыл бұрын
thank you for this video!
@amitavamozumder73
@amitavamozumder73 3 жыл бұрын
Thanks for adding few jokes in between.
@ChiragMotwani-medzepam
@ChiragMotwani-medzepam 5 жыл бұрын
You explained well. And you are so jolly :)
@TiffanyNg100
@TiffanyNg100 3 жыл бұрын
so much energy
@dankokozar
@dankokozar 5 жыл бұрын
Brilliant. Thank you!
@EsRicardo
@EsRicardo 3 жыл бұрын
I loved this video...
@iamsachin619
@iamsachin619 3 жыл бұрын
You are Awesome 🔥🔥🔥
@naumanshigri
@naumanshigri 3 жыл бұрын
thank you so much
@loreleimcveen6134
@loreleimcveen6134 8 жыл бұрын
This was so helpful! I finally understand! Thank you so much :)
@mansourq6512
@mansourq6512 5 жыл бұрын
u r amazing man , keep up ur great job :)
@LotfiORouis
@LotfiORouis 4 жыл бұрын
hahahaha wonderful teacher!!! I subscribe now! Thank you
@ahmedabohay6322
@ahmedabohay6322 7 жыл бұрын
i love you daniel you are amazing
@zlotnleo
@zlotnleo 8 жыл бұрын
Love the upcakes!
@objectObject212
@objectObject212 5 жыл бұрын
Dude, you're funny as hell ;) Thanks, great videos!
@marinalucas5288
@marinalucas5288 2 жыл бұрын
you are awesome!
@shyarxelil1987
@shyarxelil1987 5 жыл бұрын
Thank you!
@suyashsrivastava371
@suyashsrivastava371 7 жыл бұрын
Or sir are these flags for some methods only
@naalsaedi943
@naalsaedi943 7 жыл бұрын
Thank you
@killerwhiteshark1797
@killerwhiteshark1797 4 жыл бұрын
Imma tell my doctor you gave me permission to enjoy a buttery, delicious, frosting full, strawberry flavored DELICIOUS cupcake. I dont think he will doubt your commands.
@angelcaru
@angelcaru 3 жыл бұрын
I think you mean an upcake ;)
@abdelhafidbenchikh4426
@abdelhafidbenchikh4426 5 жыл бұрын
i loved it
@ajibolashodipo8911
@ajibolashodipo8911 5 жыл бұрын
Gotta have a little conversation with folks that disliked this video. I promise it will only be a conversation
@AndreiSAA
@AndreiSAA 4 жыл бұрын
Thank you for your videos! on 8:11 when you apply s.match(r); your result ["unicorn"] I just tried it on google chrome console and with same s.match(r); I'm getting the following result (see below). is it because of newer version of JS? any tips how to use it? Thanks a lot. ["unicorn", index: 0, input: "unicorns and rainbows and cupcakes", groups: undefined] 0: "unicorn" groups: undefined index: 0 input: "unicorns and rainbows and cupcakes" length: 1 __proto__: Array(0)
@ayyappareddy8065
@ayyappareddy8065 6 жыл бұрын
thanks for the vedios
@domaincontroller
@domaincontroller 3 жыл бұрын
06:50 match
@zeamanuelbelay8081
@zeamanuelbelay8081 2 жыл бұрын
This is an awesome series wish I watched it before wasting my time on a bunch of useless videos
@FredSchuck
@FredSchuck 5 жыл бұрын
4:19 That was actually pretty funny.
@painted_canvas
@painted_canvas 3 жыл бұрын
if i want to check whether a string holds all the characters of another string using regex, how will I do it..?? ex. if my string is "Resistance" and my input is "nte", i want the result to be true.
@vikaskumarmishra4353
@vikaskumarmishra4353 3 жыл бұрын
man where were you :)
@erichepperlewp
@erichepperlewp 2 жыл бұрын
00:50 - Don't quote #regex
@happykhan299
@happykhan299 4 жыл бұрын
Hi..can someone help me on my problem...how can I sort, filter and set ranges columnwise on notepad ++.. I am struggling to find the right solution for this issue I am facing..thank you in advance..
@lordberbeross5039
@lordberbeross5039 6 жыл бұрын
Hello sir, You'er doing a great job and I am enjoying your tutorials so much . But one thing that I don't know is which references or CDN you re including to your html page to work this codes from your editor?
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
Try these two videos for more: kzbin.info/www/bejne/fouXdWatebeUm8U kzbin.info/www/bejne/mmSylHmbrcpsf80
@ajitsakri9888
@ajitsakri9888 3 жыл бұрын
4:46
@mcquaid8636
@mcquaid8636 3 жыл бұрын
I miss this much coffee
@Khoir
@Khoir 5 жыл бұрын
be my teacher please :D you are awesome!
@suyashsrivastava371
@suyashsrivastava371 7 жыл бұрын
Sir are the flags not for text editors since the editors matches all the occurrence in a row
@reimarpb
@reimarpb 6 жыл бұрын
Depending on the text editor, it might not use flags. Atom doesn't.
@madanhamuchineuta3157
@madanhamuchineuta3157 6 жыл бұрын
Hello i like you videos and thank you man. Can you please make your button clicks visible on the screen so that we can see everything you are doing on the screen
@icantorus5091
@icantorus5091 7 жыл бұрын
cupcakes and rainbows....yay!!!
@lukeketterer
@lukeketterer 3 жыл бұрын
Question: How would I make this work? Trying to check if an input field contains an email address with an event listener, just a slightly different way than he did in the video. const check = /\w+@\w+\.(net|com|org|edu)/; const input = document.querySelector('.input'); const btnInput = document.querySelector('.btn-input') btnInput.addEventListener('click', function(){ if(input.value === check){ console.log(`It Worked: ${input.value}`); } else console.log(`Nope didn't work. `); }) Any input would be appreciated!
@sylvainZa
@sylvainZa 6 жыл бұрын
Using a regex to remove all white space and special characters in a string to test if it is a palindrome, strangely The expression string = string.replace(/[^a-zA-Z0-9 ]/g, ""); string = string.replace(/[\W - _ \s ]/g, ""); are exactly equal but in the first case the ^ confuses me.. could you please explain it to me? is it acting as a "inverse"
@zualapips1638
@zualapips1638 6 жыл бұрын
I believe "^" negates everything after it so it will match everything that doesn't go from a-z or A-Z and anything that is not a digit from 0-9. I also see a problem with having "-" in the middle ( (/[\W *-* _ \s ]/g, "") ) but this whole thing is a mess for me at the moment. I'm still learning lots of this.
@nategallagher9317
@nategallagher9317 3 жыл бұрын
Vegan Unicorns have EVERYTHING to do with programming
@tonisun4785
@tonisun4785 4 жыл бұрын
soooo süß
@PradeepChauhan17
@PradeepChauhan17 6 жыл бұрын
[6:58] lol
@dileepvarma3160
@dileepvarma3160 4 жыл бұрын
11:10 🤣🤣🤣🤣🤣
@HuertaGer
@HuertaGer 4 жыл бұрын
11:10 for laughs
@aleXelaMec
@aleXelaMec 5 жыл бұрын
nice, useful, but have to ask, are you high? ) thanks
@funks200
@funks200 5 жыл бұрын
Lmao
@PradeepChauhan17
@PradeepChauhan17 6 жыл бұрын
you can teach all age groups "Literally"... By literal I mean age groups [1-80] ... lol
@defforadio6428
@defforadio6428 5 жыл бұрын
sugar is bad!
@Bryan-zo6ng
@Bryan-zo6ng 7 жыл бұрын
cupcakes!
@vigyanhoon
@vigyanhoon 2 жыл бұрын
haha
@ToddDWebb
@ToddDWebb 3 жыл бұрын
What is wrong with you?
@ravikumargumpula391
@ravikumargumpula391 3 жыл бұрын
Thank you
2.7: Regular Expressions: exec() - Programming with Text
6:51
The Coding Train
Рет қаралды 28 М.
Regular Expressions (Regex) Tutorial: How to Match Any Pattern of Text
37:55
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 93 МЛН
2.5: Regular Expressions: Back References - Programming with Text
4:04
The Coding Train
Рет қаралды 65 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 123 М.
Regex Basics | Match, Extract, and Clean Text
8:04
Dataslice
Рет қаралды 17 М.
2.9: Regular Expressions: replace() - Programming with Text
18:50
The Coding Train
Рет қаралды 76 М.
2.2: Regular Expressions: Meta-characters - Programming with Text
15:54
The Coding Train
Рет қаралды 135 М.
2.4: Regular Expressions: Capturing Groups - Programming with Text
13:42
The Coding Train
Рет қаралды 154 М.
Finding text patterns in Pandas with regular expressions
7:04
Python and Pandas with Reuven Lerner
Рет қаралды 6 М.
Google Coding Interview With A Competitive Programmer
54:17
Clément Mihailescu
Рет қаралды 2,5 МЛН
CS50P - Lecture 7 - Regular Expressions
2:05:00
CS50
Рет қаралды 283 М.