for anyone wondering whats the difference between the + and the * sign, I got the answer for that. The + sign is true if you have at least 1 match. The * sign is true if you have at least 0 matches.
This was a great tutorial man, thanks! I like how you also pointed out a resource for us to use to continue learning and testing it ourselves. Got it is one go and can continue to learn.
i set as one of my life goals to make a high budget film about, the expansion of the roman empire, the greatest empire ever, the emprire that set out how the wester world will later opperate!. LONG LIVE THE EMPIRE!!!
I’m finding it difficult to understand why/how it is that we iterate through the file names in the loop. I understand when it finds the match prior to the loop. But when you go into the loop, you print out the file name (still understand THAT), but then you set match again to regex.exec(string) and magically it goes to the next grouping without ever modifying string or telling the computer to go to the next word or anything... the string doesn’t change, the regex doesn’t change...wouldn’t match be the same each time you iterate the loop, resulting in an infinite loop?
EXACTLY my doubt. EDIT : Tried it out. That is how it works. You need to iterate over it to find successive matches it seems. Weird. Why not return all matches in one list? EDIT2: You need to turn your global(g) flag on, in your original regex, else it creates an endless loop it seems.
this was interesting, but I'm searching for a secret of matching titles in an app. A few song titles are one word, but most have several words. In the app, I'd like for the spaces between words to be either ignored or not have the JavaScript eliminate the space once it was recognized as a match. I'm not sure if the problem is regex or getting JavaScript to play ball.
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..
Question: I have the following regex and text and i would like to match all doubles. However when I try to match them all it skips the 2nd line. How come? Note i am working in bash via mac terminal. what flags should i used besides -o and -i ([a-z]+) +\1 Paris in the the spring. The theoretical viewpoint is of little value here. I view the theoretical viewpoint as being of little value here. I think that that is often overdone. This sentence contains contains a doubled word or two two. Fear fear is a fearful thing. Writing successful programs requires that the the programmer fully understands the problem to be solved.
I don't get where he is testing [a-z]{1,4}. Your testing if it has 1-4 characters? (name is) is more than 4 characters, so how come it evaluates to true?
@7:27 bit confused as to why that doesn't match. "'There's no character [a-z] here." I agree, but if you remove the whitespace & 'and' at the end of the sentence, it will match why does 0 or more [a-z] characters get ignored when at the end of a sentence, but not in the middle? eg: my name is 0 and i'm 34 /my name is [a-z]*/ --- matches "my name is" /my name is [a-z]* and/ -- doesn't match anything
i think i worked it out. it's because by having '0' of a character it then has to match the space either side of it. so /my name is [a-z]* and/ would match 'my name is (two spaces here) and'
Just replace all of the smoke detector batteries at the same time, even if you don't think they need it. It's really the only way to ensure all batteries remain at the same voltage. Otherwise you will be replacing one battery after another and not really know which detector is causing the issue ( at 3am of course ... lol ).
for anyone wondering whats the difference between the + and the * sign, I got the answer for that.
The + sign is true if you have at least 1 match.
The * sign is true if you have at least 0 matches.
thanks man
Yeah he did mention that in the video
@@TheHappyKamper my comment got 54 likes for a reason brah
@@rossocorsa6577 4:27 FYI
At the end you say thank you so much for watching while me must be thankfull to you about your free valuable information.
Our coding bootcamp never covered regex, this is gold. Thanks so much!
Doing a paid coding bootcamp and they failed to explain this is an understandable way. Thanks freeCodeCamp :P
This was a great tutorial man, thanks! I like how you also pointed out a resource for us to use to continue learning and testing it ourselves. Got it is one go and can continue to learn.
Thank you so much. You just helped me with my project. I was struggling with regular expression
Thanks! Great video helped to get a better idea of what regex is all about.
Thanks for this brief and useful regex tutorial
This dude gives me the chills...
Thanks
I got it in one go . Thank you bro
Thank you so much for such a good basic explanation of regex.
Well done, thanks for your efforts
manager: the coder's name is cody?
me: maybe that's why he became a coder
nominative determinism strikes again
This is wonderful, thank you.
This is a great tutorial
Thanks!
cool it gave me a better understanding of regex
instead of showing your image just show the code on the whole screen
Ur fucking stupid lol
i set as one of my life goals to make a high budget film about, the expansion of the roman empire, the greatest empire ever, the emprire that set out how the wester world will later opperate!. LONG LIVE THE EMPIRE!!!
i know this is a coding tutorial, i just feel hyped up about the roman right now, and diseded to share it, seriously go search about it ITS AWESOME
This man is very serious :)
Thanks for the lecture! Would be nicer if you could provide some "real-life" applications I guess.
Best one on the web!
Brilliant introduction to the topic...very good content for beginners...
Very useful. Great video thanks
Fantastic ornate cornicing.
Thanks for the overview!
great video for basics
Great tutorial thanks!
Thanks for this great video!
lol literally after understanding what this is its my favorite thing :D
Coder Cody or Cody the Coder, im sure you get that a lot lol
good video - thanks
finely thanks very match i understand know
Thanks!
that site is amazing!
very helpful video, thanks!
this was great. thanks!
I’m finding it difficult to understand why/how it is that we iterate through the file names in the loop. I understand when it finds the match prior to the loop. But when you go into the loop, you print out the file name (still understand THAT), but then you set match again to regex.exec(string) and magically it goes to the next grouping without ever modifying string or telling the computer to go to the next word or anything... the string doesn’t change, the regex doesn’t change...wouldn’t match be the same each time you iterate the loop, resulting in an infinite loop?
EXACTLY my doubt.
EDIT : Tried it out. That is how it works. You need to iterate over it to find successive matches it seems. Weird. Why not return all matches in one list?
EDIT2: You need to turn your global(g) flag on, in your original regex, else it creates an endless loop it seems.
You are amazinggggggggggg.....
I see my mistake now, I had my string literal within quotes. I thought I was supposed to treat the regex pattern as a string literal.
thank you, very cool
Regex is the term for not being accepted
haha "rejects" so funny omg
thank you so much !!!!!
thank's
awesome
the best one of them :)
Good stuff, but the volume is too low for a YT video. I had to increase the volume, but then all the other videos were too high in volume.
hey cody im cody too
Life saver
good tutorial, but the fonts are way too small
cool thnx mate
how does "REGULAR EXPRESSIONS" - turn into Rej-Ex ?
this was interesting, but I'm searching for a secret of matching titles in an app. A few song titles are one word, but most have several words. In the app, I'd like for the spaces between words to be either ignored or not have the JavaScript eliminate the space once it was recognized as a match. I'm not sure if the problem is regex or getting JavaScript to play ball.
Hello Cody. Thanks for the great tutorial. Is it possible to reach you somehow? Thanks. Greetings from Austria.
its regex, not rejects
Ironic how to the the actual learning part is the smallest frame of the video.
BUT why the c is marked though?
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..
Question: I have the following regex and text and i would like to match all doubles. However when I try to match them all it skips the 2nd line. How come? Note i am working in bash via mac terminal.
what flags should i used besides -o and -i
([a-z]+) +\1
Paris in the the spring.
The theoretical viewpoint is of little value here.
I view the theoretical viewpoint as being of little value here.
I think that that is often overdone.
This sentence contains contains a doubled word or two two.
Fear fear is a fearful thing.
Writing successful programs requires that the the programmer fully understands the
problem to be solved.
Idk if it's something in the audio or if his accent is a bit different but I found it quit hard to grasp everything he was saying
what is the IDE he's using?
You look like Diane Kruger
@3:36 ah, you've gotten to that age when you forget how old you are. i was 27 when it happened to me XD
I don't get where he is testing [a-z]{1,4}. Your testing if it has 1-4 characters? (name is) is more than 4 characters, so how come it evaluates to true?
nevermind we are evaluating the word after name is. I got it
Find other resources???
What a G!
?.co& what will be regex for this
@7:27 bit confused as to why that doesn't match. "'There's no character [a-z] here." I agree, but if you remove the whitespace & 'and' at the end of the sentence, it will match
why does 0 or more [a-z] characters get ignored when at the end of a sentence, but not in the middle?
eg:
my name is 0 and i'm 34
/my name is [a-z]*/ --- matches "my name is"
/my name is [a-z]* and/ -- doesn't match anything
i think i worked it out. it's because by having '0' of a character it then has to match the space either side of it.
so /my name is [a-z]* and/ would match 'my name is (two spaces here) and'
someone is playing EE2
why he look possessed lmaoo his eyes
is this necessary?
I don’t think this is a good tutorial . Or did I miss the first part ?
I guess you are standing so your face is blocking the code, that's why I cant see the lookaheads lol
I liked her but she regex me :(
This might be a good video but I can't stand 'rej-x'
*All your are belong to me*
Very handsome
He sighed like 20 times in 17 minutes. Clearly, he was very annoyed to make this video. Really unprofessional.
It was the smoke detector chirping in the back-ground that was annoying him....most likely
Just replace all of the smoke detector batteries at the same time, even if you don't think they need it. It's really the only way to ensure all batteries remain at the same voltage. Otherwise you will be replacing one battery after another and not really know which detector is causing the issue ( at 3am of course ... lol ).
Extremely helpful video, top notch Cody. Thanks!