Learn Regular Expressions (Regex) - Crash Course for Beginners

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 185

  • @casperdewith
    @casperdewith 3 года назад +22

    34:48 For anyone confused why he didn't put a comma after the 2 for “two *or more*” it’s because it is in a lookahead: it only needs to see two digits and then it can stop looking because then we know there are at least two.

  • @kevinthomas689
    @kevinthomas689 4 года назад +101

    01:04 Using the Test Method
    02:15 Match Literal Strings
    02:57 Match a Literal String with Different Possibilities
    03:46 Ignore Case While Matching
    02:46 Extract Matches
    05:33 Find More Than the First Match
    07:16 Match Anything with Wildcard Period
    08:54 Match Single Character with Multiple Possibilities
    10:15 Match Letters of the Alphabet
    11:04 Match Numbers and Letters of the Alphabet
    12:15 Match Single Characters Not Specified
    13:33 Match Characters that Occur One or More Times
    14:19 Match Characters that Occur Zero or More Times
    15:32 Find Characters with Lazy Matching
    18:54 Find One or More Criminals in a Hunt
    19:58 Match Beginning String Patterns
    20:56 Match Ending String Patterns
    21:39 Match All Letters and Numbers
    22:47 Match Everything But Letters and Numbers
    23:35 Match All Numbers
    24:06 Match All Non-Numbers
    24:40 Restrict Possible Usernames
    27:28 Match White-space
    27:56 Match Non-White-space Characters
    28:26 Specify Upper and Lower Number of Matches
    29:40 Specify Only the Lower Number of Matches
    30:10 Specify Exact Number of Matches
    30:46 Check for All or None
    31:37 Positive and Negative Lookahead.....Check For Mixed Grouping of Characters
    35:09 Reuse Patterns Using Capture Group
    40:18 Use Capture Groups to Search and Replace
    43:17 Remove Whitespace from Start and End

  • @kevinthomas689
    @kevinthomas689 4 года назад +48

    *FOR REFERENCE
    :----*
    \f matches form-feed.

    matches carriage return.

    matches linefeed.
    \t matches horizontal tab.
    \v matches vertical tab.
    \0 matches NUL character.
    [\b] matches backspace.
    \s matches whitespace (short for [\f

    \t\v\u00A0\u2028\u2029] ).
    \S matches anything but a whitespace (short for [^\f

    \t\v\u00A0\u2028\u2029] ).
    \w matches any alphanumerical character (word characters) including underscore (short for [a-zA-Z0-9_] ).
    \W matches any non-word characters (short for [^a-zA-Z0-9_] ).
    \d matches any digit (short for [0-9] ).
    \D matches any non-digit (short for [^0-9] ).
    \b matches a word boundary (the position between a word and a space).
    \B matches a non-word boundary (short for [^\b] ).
    \cX matches a control character. E.g: \cm matches control-M .
    \xhh matches the character with two characters of hexadecimal code hh .
    \uhhhh matches the Unicode character with four characters of hexadecimal code hhhh .

  • @MohammadAlhef
    @MohammadAlhef 4 года назад +3

    The Best Course in The World , Thank You From Syria Arab

  • @conaxliu9677
    @conaxliu9677 4 года назад +19

    At 36:36, /(\w+)\s\1/ is actually not the same to /(\w+)\s\(\w+)/
    When \1 is used, it enforces the same set of characters, so "regex regex" will match but "regex abcdefg" won't match. (Second word must be the same as the first word.)
    However, if use /(\w+)\s\(\w+)/ then a string containing any two different words seperated by a space will also match.
    So the purpose of using \1 is not just to save space.

  • @bmoffitt21
    @bmoffitt21 5 лет назад +131

    Didn't realize Jerry Seinfeld is getting into the RegEx game. Great course, thank you!!

    • @MukeshKumar-rh1rs
      @MukeshKumar-rh1rs 4 года назад

      Name 🙏🙏🙏🙏🙏

    • @oussama40612
      @oussama40612 3 года назад

      Hahahahha

    • @faraza5161
      @faraza5161 2 года назад

      Underrated comment

    • @Bobson_Dugnutt_Esq
      @Bobson_Dugnutt_Esq 2 года назад +14

      "What is the deal with regular expressions? Does this imply that there are irregular expressions? Maybe they just need more fiber in their diet."

    • @Greerbowski
      @Greerbowski 2 года назад +1

      Don’t get me started on airline food!

  • @VeedFeed
    @VeedFeed 6 дней назад +1

    the best guide for regex!!!!!!!!!!!!!!!!!!!

  • @OliverWoodphotography
    @OliverWoodphotography 5 лет назад +5

    This has helped me to understand htaccess URL rewrites

  • @RedEyedJedi
    @RedEyedJedi 5 лет назад +4

    That was insanely helpful. Thank you so much Beau. I see 8 people don't have complete control over their mouse when clicking the like button.

  • @HostDotPromo
    @HostDotPromo 5 лет назад +28

    If regex was easy, I wouldnt be watching this 🔥 hard to remember how it works.

  • @Jaybearno
    @Jaybearno 2 года назад +5

    Step 1- learn regex
    Step 2- forget regex
    Step 3- realize you still need to know regex, frantically try combinations on regexr until you get what you need.

    • @discodilip2000
      @discodilip2000 2 года назад

      lolol I know this is True because I ended up on this video too

  • @anyavailablehandle
    @anyavailablehandle 2 года назад +2

    Great clear and concise teaching. Great video . Thanks

  • @roeltaga
    @roeltaga 4 года назад +11

    27:00 I think you missed something about the case when the username is longer than 2 characters. You made it so it has to start with two letters.
    I think the right regex would be this :
    /^[A-Za-z]{2,}\d*$|^[A-Za-z]\d{2,}$/
    this checks is the username starts with at least 2 or more letters and then it allows you to have 0 or more numbers at the end. OR also checks if it starts with only one letter but has to have 2 or more numbers for it to be allowed.

    • @aditi_bscmathematics_3rdye740
      @aditi_bscmathematics_3rdye740 3 года назад +1

      thank you!!! yeah i was also thinking this and then i read your comment.

    • @theCuriousCivilEngineer
      @theCuriousCivilEngineer 3 года назад

      when you use {2,} it means at least two or more alphabets. so there is no problem with that

    • @MrBoiks
      @MrBoiks 2 года назад +1

      spec says numbers aren't allowed if the name is only 2 characters.

    • @icaruz9094
      @icaruz9094 2 года назад +1

      WOOW YOU'RE HIRED!!!

    • @julioarruda8182
      @julioarruda8182 Год назад

      @@theCuriousCivilEngineer d88 should pass but it wont

  • @yasam9311
    @yasam9311 4 года назад +2

    This video is soo great. gives everything concisely. sincerely thank you!

  • @JacobKinsley
    @JacobKinsley Год назад +1

    I wish there was like, an "expanded" version of regex where instead of symbols and letters, it's words with some aliases for common things. Writing Regex is one of those things I really wish I never have to figure out ever again.
    Calling the expressions regular is like making a programming language and calling it "better programming language"

  • @gurunathrao2985
    @gurunathrao2985 3 года назад +1

    Regex is the criminal !

  • @kefas404
    @kefas404 4 месяца назад

    thank you this was really helpful to get the basics

  • @TheSclare
    @TheSclare 5 лет назад +1

    Finally someone is talking about this topic

    • @TechnoDB
      @TechnoDB 5 лет назад +1

      freeCodeCamp explanation is dope.. 😊

  • @ricardocambundo2527
    @ricardocambundo2527 3 года назад

    This is a really good tutorial
    Got a deeper understanding of RegExp

  • @nkplus
    @nkplus 5 лет назад +2

    Thanks Beau !! ---- Finally got !! which I was desperately waiting for ...

  • @faronildomelancia2454
    @faronildomelancia2454 5 лет назад

    I'm brasilian and i love your channel.Congratulations!!

  • @hammadurrehman3850
    @hammadurrehman3850 5 лет назад +1

    Well explained best video one can get on regex.

  • @danhle7999
    @danhle7999 4 года назад +1

    thank you for the explaination this is exactly what i am looking for

  • @dj10schannel
    @dj10schannel 9 месяцев назад

    Man this was pretty darn good thanks beau 🙏

  • @pupfriend
    @pupfriend 5 лет назад +32

    Little known fact. The guy who invented regex also invented water boarding

    • @LurajerLP
      @LurajerLP 5 лет назад

      For real??😂

    • @nicknamekenny
      @nicknamekenny 5 лет назад

      Source?

    • @arnoldp8962
      @arnoldp8962 5 лет назад +1

      Meh, water boarding has been around since the catholic inquisition or earlier

    • @arunteltia7888
      @arunteltia7888 4 года назад +1

      what is water boarding

    • @noelkirkland
      @noelkirkland 4 года назад +6

      Haha, one guy says "source?" haha. I think what OP was saying is that learning regex is like torture.

  • @conaxliu9677
    @conaxliu9677 4 года назад +2

    When I come to Lookaheads at 31:38 it starts to get complicated and confusing.
    Take the positive lookahead example:
    let quit = "qu";
    let quRegex = /q(?=u)/;
    quit.match(quRegex);
    So, quote from 32:29: "It's first going to check for the 'q', and it's going to look ahead to make sure there is an 'u' LATER in the string."
    If that statement is correct then I would expect the following also works:
    let quit = "quit fooling around";
    let quRegex = /q(?=fool)/;
    quit.match(quRegex);
    I expected it to work because I am taking "later in the string" as anything between the 'q' and the end of the string.
    So if the string is "quit fooling around" then I expect /q(?=fool)/ will also match. However, this is not the case. The lookahead actually just check the pattern NEXT to the 'q'. So only these would match:
    /q(?=u)/;
    /q(?=uit)/;
    /q(?=[a-zA-z ]*fool)/;
    Does that make sense or have I misunderstood something?

    • @mariocardenas1259
      @mariocardenas1259 4 года назад

      Yes that's right, in order to do what you want to do you would have to use /q(?=.*fool)/

  • @conaxliu9677
    @conaxliu9677 4 года назад +6

    All my life I felt like something was missing, until I found you.

    • @127.
      @127. 4 года назад

      Corona, Corona... Be my Corona...

  • @Ali-vz9rs
    @Ali-vz9rs 4 года назад

    And another super useful video. Thank You freeCodeCamp.

  • @Rei-m3g
    @Rei-m3g 5 лет назад +16

    i suppose i cant master immediately since regex is so lengthy, i hope to learn this on a need to learn basis.
    what i dont use i forget immediately. thanks BTW

    • @alexsilva820
      @alexsilva820 5 лет назад +2

      exactly the same with me bro. I will just only try to learn the basics of it

  • @mrzack184
    @mrzack184 5 лет назад +1

    million thanks for this awesome video! it really taught me a lot.

  • @rakibhossensarkar6080
    @rakibhossensarkar6080 Месяц назад +1

    mindblowing

  • @PabloNevares
    @PabloNevares 5 лет назад +4

    I think there's an error in the video explaining capture groups. At 36:36 the author says that this:
    /(\w+)\s\1/
    and this:
    /(\w+)\s(\w+)/
    Would have been the same thing, just shorter due to using \1 to refer to the previous capture group. These are not the same regex patterns. The first example will test whether the second string is a repeat of the first. The second example will allow two different strings to pass the test. Try both with "regex regex" and "regex rerex" to see the difference.

    • @pnuematikon
      @pnuematikon 5 лет назад +1

      I noticed this too. Figured I'd see if there were any other comments before posting.

    • @conaxliu9677
      @conaxliu9677 4 года назад

      Ha, I just commented on that, and then started to read other people's comments...

  • @swapnilyadav714
    @swapnilyadav714 2 года назад +1

    You guys are using Seinfeld vision from 30 Rock😁

  • @rolandoriley
    @rolandoriley 2 года назад +1

    Excelent course. .. thanks!

  • @abdullahfurkanozbek7558
    @abdullahfurkanozbek7558 5 лет назад +1

    I really consalidate my regex knowledge, thank you 😊

  • @bilalbeny4172
    @bilalbeny4172 Год назад

    thank u so much.
    it was an useful course.

  • @Blentux
    @Blentux 2 года назад

    When I first got to do with Regex I hated it. Now that I begin to understand it, I'm kinda starting having fun lol

  • @rockybalboa1086
    @rockybalboa1086 5 лет назад +2

    Very detailed and we'll put together!

  • @ahmedhamed8324
    @ahmedhamed8324 5 лет назад +2

    Man!! they've must read my mind!

  • @JuanSB827
    @JuanSB827 3 года назад +2

    I think at 36:40 there is mistake.
    He says that replacing \1 is just to avoid rewriting (\w+)
    However
    /(\w+)\s\1/ tests TRUE for "regex regex" but FALSE or "regex somethingelse"
    /(\w+)\s(\w+)/ tests TRUE for "regex regex" but TRUE for "regex somethingelse"

  • @katieneko674
    @katieneko674 2 года назад +2

    how many times am I going to forget everything and come back to learn it again? Step by step is simple. putting it together is hard, and remembering what random letters do is simply not going to happen. Anyone got a way to memorize this or am I SOL?

  • @Ольга-о6ь2й
    @Ольга-о6ь2й 2 года назад

    Very clear explanation. Tnanks

  • @Bruno-ds8ze
    @Bruno-ds8ze 5 лет назад +1

    yeah!! i was waiting for this, thanyou very much

  • @WickedTwitches
    @WickedTwitches 3 года назад

    Be me, find a video, Beau is the narrator, leave understanding everything about rejects

  • @r1shabhnegi
    @r1shabhnegi 2 года назад

    Thanks a lot Beau!

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 2 года назад +1

    Beau, Thank you very much for this tutorial! It is great!

  • @shashishekhar----
    @shashishekhar---- 3 года назад

    Thank you Beau , much appreciated thing !

  • @thuglife896
    @thuglife896 5 лет назад

    Helpful as always Beau.

  • @sandoxs
    @sandoxs 5 лет назад +1

    First of all sorry my bad english...Wonderfull tutorial...just to mention...There's an error on 27:22 : about username restrictions...in the conditions it was mentioned that 2 letter usernames cannot have numbers after letters but actually it can...pls fix it

    • @conaxliu9677
      @conaxliu9677 4 года назад

      I don't see the issue you described. What user name did you provide?

  • @JohnBartmannMusic
    @JohnBartmannMusic 3 года назад +2

    35:00 "This is going to match for 5 or more characters". Noob question: doesn't the {5} mean it's going to match EXACTLY 5 characters?

    • @Z-713
      @Z-713 3 года назад +2

      Yes! It does. {x,y} the x is the minimum, and the y is the maximum. {1,3} will match 1, 2, or 3. {5,} will match 5 OR MORE. {5} will match 5 EXACTLY. So, when the maximum is left blank ({x,}) it treats it as x OR MORE, and when the minimum and maximum don't exist ({x}) it treats it as x EXACTLY.

    • @JohnBartmannMusic
      @JohnBartmannMusic 3 года назад +2

      ​@@Z-713 He says "this is going to match 5 or more characters" but the code will match exactly 5. The code reads {5} but his voiceover suggests that the code reads {5,}. Is there a mistake or am I missing something?

    • @Z-713
      @Z-713 3 года назад +2

      @@JohnBartmannMusic Yes, you are correct. He did make a mistake in the video.

    • @theCuriousCivilEngineer
      @theCuriousCivilEngineer 3 года назад +2

      @@JohnBartmannMusic it's because he is using it in a look ahead which means it will look through exactly "five" characters and is the code finds five character it will not care about the rest of the string.

    • @JohnBartmannMusic
      @JohnBartmannMusic 3 года назад

      @@theCuriousCivilEngineer thank you

  • @whateveritwasitis
    @whateveritwasitis 10 месяцев назад

    Wanted to thank you i hit this in class, lmao but I did it with my collar😂😂😂i knew something was wrong, still got it though

  • @rjse4905
    @rjse4905 4 года назад

    Awesome explained. Thanks sir

  • @VictorShirima-y2p
    @VictorShirima-y2p Год назад

    thank you its a good tutorial

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 5 лет назад +3

    Thank u for this awesome video

  • @johnsonjayaraj7209
    @johnsonjayaraj7209 Год назад

    Great video, thanks!!

  • @johnlewis7736
    @johnlewis7736 4 года назад

    Excellent. Thanks!

  • @Noritoshi-r8m
    @Noritoshi-r8m 2 года назад

    Great lecture, ty.

  • @germanduterte7110
    @germanduterte7110 4 года назад +9

    Regular Expression is the most hardest part of all. It's easy to forget the rules and difficult to learn.

  • @jeneshnapit3248
    @jeneshnapit3248 5 лет назад +2

    What a coincidence I just got to regex like 10 mins ago. DM me if anyone looking to work on projects together.

    • @bafana_mhlamvu
      @bafana_mhlamvu 5 лет назад

      What level of coding knowledge are those projects catering for?

    • @jeneshnapit3248
      @jeneshnapit3248 5 лет назад

      @@bafana_mhlamvu I'd say begginner started learning JS a month ago know the basics and stuff but following the FCC JS at the moment. Can do DOM manipulation and have made a simple todo list.

    • @bafana_mhlamvu
      @bafana_mhlamvu 5 лет назад +2

      ​@@jeneshnapit3248​Although relearning JavaScript, that sums my current level of the language... I'm interested in doing these projects...

  • @ajeetyadav4044
    @ajeetyadav4044 3 года назад

    Thanks Beau;

  • @mikiaszerihun3681
    @mikiaszerihun3681 Год назад +2

    I think something went wrong on username validator regex. what do you think Mr Beau Carnes.

    • @emanuelmaza718
      @emanuelmaza718 Год назад

      En la parte de restricción de usuarios 24:40 solo me deja pasar el test utilizando la expresión /^[A-Za-z]{2,}\d*$ |^[A-Za-z]{1,}\d{2,}$/ si alguien encontró otra solución me la podría escribir en comentarios. At Restrict Possible Usernames 24:40 I'm able to pass the test with the expression /^[A-Za-z]{2,}\d*$ |^[A-Za-z]{1,}\d{2,}$/ Plz if there's any other solution can you write it in the comments.

  • @darkriderofwest
    @darkriderofwest 5 лет назад

    Very educational. Thanks a lot.

  • @rajeshsahu3073
    @rajeshsahu3073 4 года назад +7

    For the username pattern challenge, I think you have missed the last point that says If there are only two letters then there should not be any number ?

    • @ntintelomazibuko9722
      @ntintelomazibuko9722 4 года назад +2

      He specified at least 2 letters so it will work

    • @jachiu89
      @jachiu89 4 года назад +4

      @@ntintelomazibuko9722 it's actually not working, I put the code he used and it's not passing because the regex won't match "Z97" since he used the {2,0} it needs at least the first two characters to be letters, it won't allow numbers.

    • @shankerm3959
      @shankerm3959 4 года назад

      I was looking out for that as well.

    • @roeltaga
      @roeltaga 4 года назад +3

      @@ntintelomazibuko9722 He made it so it has to start with 2 letters. But actually if the username is going to be longer than 2 characters needs to allow the 2nd one to be a number. I think the right regex would be /^[A-Za-z]{2,}\d*$|^[A-Za-z]\d{2,}$/

    • @ashutoshlohogaonkar8348
      @ashutoshlohogaonkar8348 2 года назад +1

      @@roeltaga Thanks man.. I was unable to pass one case of"Z97"

  • @dr_morpho
    @dr_morpho 2 года назад

    Thank you!))

  • @fabrice9848
    @fabrice9848 2 года назад +1

    @22:00 He confused slash with backslash, frequent mistake.

  • @Webnoob
    @Webnoob 5 лет назад

    Excellent tutorial. Thx.

  • @jvlensez
    @jvlensez Год назад

    Hi Beau,
    1. Which program are you using for the code in the video?
    2. I really liked the mouse pointer, could you please share how I could get that on my PC?

  • @qlevrqt8886
    @qlevrqt8886 11 месяцев назад

    in 18:36 I don't understand why the result wouldn't only be [""], why doesn't it stop once it sees the second bracket? Because technically "h1" is inside .

  • @LHSgoatman
    @LHSgoatman 3 года назад

    Thanks for the video, but I think you are mistaken or misspoke on the reuse pattern using capture group. You stated that if you replace the \1 with the same capture pattern that it would be the same thing. I believe that is a mistake, for example use repeatstring. If you replaced the \1 with (\w+) then Yes it would match the string, but it would also match “regex testing” and I don’t think that is what you are trying to do.

  • @darkcodelab2866
    @darkcodelab2866 5 лет назад

    Waiting for this!!!!!!

  • @deepakbhargav7434
    @deepakbhargav7434 4 года назад

    THANK YOU BOSS

  • @felixnoel8844
    @felixnoel8844 3 года назад

    This is certainly an informative video however it is not a beginner's video due to how fast paced it is and the assumption that some prerequisite knowledge is present. In this case JavaScript. Nonetheless it is a good tutorial for people who want to refresh their knowledge on this particular area.

  • @chrikrah
    @chrikrah 5 лет назад +2

    37:03 I don't think that /(\w+)\s\1/ is the same as /(\w+)\s(\w+)/
    The former matches the exact same word again. So it would match "apple apple" but not "apple kiwi".
    Whereas the latter would match both "apple apple" and "apple kiwi".
    Correct me if I'm wrong.

    • @Martin-delta
      @Martin-delta 5 лет назад +1

      I was thinking the exact same thing. I think you are correct.

    • @cataxcab
      @cataxcab 5 лет назад

      Is regex the same in Java?

    • @chrikrah
      @chrikrah 5 лет назад

      @@cataxcab Unfortunately, there is no standard for regular expressions. There are a lot of overlaps and the basics are the same, but a lot of details differ. Checkout www.regular-expressions.info - it has a lot of information on the different flavors of Regex.

  • @norflit
    @norflit 3 года назад +3

    the solution at 34:58 is not correct and the original challenge throws an error if I use 5 instead of 6 when testing string '12345'. let me know if this is a misunderstanding 🙂

    • @LevisRaju
      @LevisRaju 2 года назад +1

      I think they improved the test cases now. Coz I got the same error

  • @LurajerLP
    @LurajerLP 5 лет назад

    Thank You 🤩

  • @rakibhossensarkar6080
    @rakibhossensarkar6080 Месяц назад +1

    awesome

  • @ankitmehrotra8519
    @ankitmehrotra8519 5 лет назад

    Beau ur name is sweet and so is ur way of explaining everything..Many thanks beau, ur awesome..😁😁👏👏🍻🍻

    • @younglonny2220
      @younglonny2220 5 лет назад

      Beau is beautiful in french (masculine, belle is feminine)

  • @abdoemad6938
    @abdoemad6938 3 года назад

    perfect !

  • @MatheusPereira-nn9dj
    @MatheusPereira-nn9dj 2 года назад +1

    when we have this regexp information stored in variables , and from what I understand in the console they are in an array, can I use map() or filter() syntax?

  • @harwinderthakur9708
    @harwinderthakur9708 4 года назад

    Thanks

  • @tonydanza4502
    @tonydanza4502 5 лет назад

    I guess specifying number of matches inside a look ahead uses different syntax than specifying number of matches not inside a look ahead? outside a look ahead {5} means exactly 5 but inside it means at minimum I take it?

  • @holo6433
    @holo6433 3 года назад

    Last task you can do without replace
    /[^\s].+[^\s]/

  • @arthurserafim8066
    @arthurserafim8066 5 лет назад +1

    Just got busted in a code test, so here am I!

  • @orashusedmund7675
    @orashusedmund7675 Год назад

    in the username example you gave, how would we restrict Two-letter usernames from having numbers
    /^[A-Za-z]{2,}\d*$/ doesn't enforce this restriction

  • @charlesludwig8672
    @charlesludwig8672 2 года назад

    Next, Adam Sandler should narrate functional programming

  • @AbdoMohamed-ml7ei
    @AbdoMohamed-ml7ei 3 года назад +2

    at Restrict Possible Usernames 24:40
    if the string is three characters (one letter and two numbers ) it will get false
    so the expression should be /^[A-Za-z]{2,}\d*$ |^[A-Za-z]{1,}\d{2,}$/
    (WRONG ANSWER Check Kristof S comment)

    • @AbdoMohamed-ml7ei
      @AbdoMohamed-ml7ei Год назад

      yeah the two characters long spec
      i missed that. thank you

  • @cataxcab
    @cataxcab 5 лет назад

    Hey, will I be able to use this in Java? I googled, it says lookbehind isn't supported in js, or something like that!

  • @arctichippie
    @arctichippie 5 лет назад

    Thanks Beau !

  • @GemsofPakistan1
    @GemsofPakistan1 2 года назад

    How to Find a regular expression that matches the last two columns of the file. ?

  • @ttbtv6266
    @ttbtv6266 2 года назад

    39:18 bruh what. Why would it match the space after the third '42' when the last element is any digits?

  • @GemsofPakistan1
    @GemsofPakistan1 2 года назад

    How to Find a regular expression that matches the last two columns of the file. ? PLEASE HELP

  • @ttbtv6266
    @ttbtv6266 2 года назад

    At 43:22, why doesn't /^(\s+)\1$/.test(' Hello, World! ') equal True? Can someone explain this to me pls?

  • @Ddjfhfjfj
    @Ddjfhfjfj 2 года назад

    10:07 Why aeiou in bracket don’t need comma ?

  • @viniciusra9584
    @viniciusra9584 5 лет назад

    Why not use comma instead of using let multiple times?
    instead of :
    let a = 0
    let b = 1
    let c = 2
    let d = 3
    use this:
    let a = 0, b = 1, c = 2, d = 3;

    • @OnyxBloodStone
      @OnyxBloodStone 4 года назад +1

      It's not gonna fit in a single line. Think about mobile viewers

  • @mykalimba
    @mykalimba 2 года назад

    The '\' character is a backslash, not a slash. Also, the '*' is an asterisk (notice how it's spelled), not an "asterick".

  • @rajeshprasadh3717
    @rajeshprasadh3717 5 лет назад

    Sir do you have any course which can teach me about how to make dynamic graph using JavaScript
    I want to make one project for my college.
    In that I will compare 10 wealthiest people in the world between 1990 to 2019
    Also we need to fetch data from another website for this project.
    Please help and reply

    • @freecodecamp
      @freecodecamp  5 лет назад +1

      Look into D3: ruclips.net/video/C4t6qfHZ6Tw/видео.html

  • @vertigo6982
    @vertigo6982 5 лет назад +5

    Free Coke Amp

  • @prashantsuryawanshi9930
    @prashantsuryawanshi9930 5 лет назад

    Can you tell me , which code editor are you using?

  • @souravsuman1993
    @souravsuman1993 5 лет назад

    5:28 what will happen if their is multiple match in a single line? Will it return array of matching strings?

    • @redps8611
      @redps8611 5 лет назад

      i think just the first unless g is specified at the end of the regex..... right?

    • @conaxliu9677
      @conaxliu9677 4 года назад

      @@redps8611 Right.

  • @Aydos-s3h
    @Aydos-s3h 4 года назад

    nice good