Regular Expressions in JavaScript - #1 REGEX ULTRA BASICS

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 59

  • @Crimsonaut
    @Crimsonaut 6 ปีที่แล้ว +2

    Fantastic idea for a new series. My brother has developed a reputation as being a REGEX master. Developers are always asking his advice with them. They are super useful.

  • @MattKander
    @MattKander 6 ปีที่แล้ว +11

    Sorry but I found this super confusing, I didn't understand what the special characters meant or why you were using them, opening and starting a string. Would have liked a bit more context as to the structure/grammar of a regex expression.

  • @rossgeography
    @rossgeography 6 ปีที่แล้ว

    I have needed this forever - I have the O'Reilly books but never had the motivation to just get started - an intro is much needed - THANKS DevTips Dudes

  • @frederickbogdanoff3796
    @frederickbogdanoff3796 6 ปีที่แล้ว +19

    Thank you for this! Really appreciating the new devtips!

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว +2

      Thank you kindly, that is great to hear!Keep the feedback coming!

  • @joebazooks
    @joebazooks 6 ปีที่แล้ว +1

    loved it. the most devtips-ish vid u guys have made so far

  • @mserrano
    @mserrano 6 ปีที่แล้ว +8

    David is getting better and more confident doing these videos :)

  • @gordonsmith6863
    @gordonsmith6863 6 ปีที่แล้ว +2

    I needed this in my life so much right now, thank you so much!

  • @Djzaamir
    @Djzaamir 6 ปีที่แล้ว +3

    great video david, looking forward for more videos :)

  • @lucasarregui2532
    @lucasarregui2532 6 ปีที่แล้ว +1

    You are Awesome buddy, it can't be explain better... Subscribed !!

  • @BrianDriesenga
    @BrianDriesenga 6 ปีที่แล้ว +5

    Very nice explanation. I knew someday I would want to add a deeper understanding of RegExp. Glad to hear that this is part of a series. Really want to nail this down. Thanks David!

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว +1

      Wow, that's a really nice compliment, thank you!

    • @zacremboldt9160
      @zacremboldt9160 6 ปีที่แล้ว

      I totally second this! Thank you so much David! Excited for the rest of the series 😁

  • @GameOver7853
    @GameOver7853 6 ปีที่แล้ว +3

    Good job! Even though I'm pretty familiar with regex I'm excited to watch the series :)

  • @bryansharpley4190
    @bryansharpley4190 6 ปีที่แล้ว

    Great explanation David!
    Nice to see this topic covered many explanations of regex are go to stack overflow and get a snippet... there you go regex lol
    Thanks for giving a real explanation of the how and why!

  • @gunhound45
    @gunhound45 6 ปีที่แล้ว +3

    Any plans of making another series with mpj like the react one?

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว +3

      We don’t have many plans at all at the moment, we are trying different things and listening to your feedback!

  • @miguelperezpal
    @miguelperezpal 6 ปีที่แล้ว

    This is super useful :D thx for sharing your knowledge

  • @sdever
    @sdever 6 ปีที่แล้ว +6

    Yo dawg we heard you like backslashes so we escaped your backslashes WITH backslashes.

  • @TomLeg
    @TomLeg 6 ปีที่แล้ว

    Used to be, once upon a time, everyone used the regex library from Henry Spencer, of U Toronto. The Perl programming language expanded what regex could do, so nowadays, languages either import the Perl regex library or re-implement it .. or a subset of it.
    So it you find regexp powerful, learn Perl and find out what more you can do with regular and not quite regular expressions.

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว

      Fun! That made me look into the history of it - wow, regex was initially created in 1950!

  • @wingraptor
    @wingraptor 6 ปีที่แล้ว

    I'm fairly new to javascript and was wondering what the ${phoneNumber} is ${isValidNumber} type notation is called. See around 10:37 in the video?

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว +1

      Template literals! They are the best

  • @seanrodriguez817
    @seanrodriguez817 6 ปีที่แล้ว

    Somehow there's a hole in my heart where Travis use to be :( not you're fault David, it's a great video.

  • @gunhound45
    @gunhound45 6 ปีที่แล้ว +2

    Great video!

  • @7XStriderX7
    @7XStriderX7 6 ปีที่แล้ว

    Awesomw Guide! Thank you!!!

  • @deepikap.k8694
    @deepikap.k8694 6 ปีที่แล้ว

    Could you please do a tutorial about aria and aria-hidden

  • @vigneshg9648
    @vigneshg9648 6 ปีที่แล้ว

    When I tried "end$" REGEX on "match end at the end" in ur REGEX code codepen site , it is highlighting "match 'end' at the end" instead of "match end at the 'end' ".
    How can I verify "end" at the last one is present?

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว

      It is probably a bug in my small regex highlighter. I built it in an hour and have only really tested it for my own use-cases. Try out your modified regex on regexpal.com or a similar site.

  • @Ecdetails
    @Ecdetails 6 ปีที่แล้ว

    Thanks David amazing

  • @devgandhi914
    @devgandhi914 6 ปีที่แล้ว

    Hey, can ya'll do video on visual studio code and it's packages.

  • @DustinGunnells
    @DustinGunnells 5 ปีที่แล้ว

    You Are Awesome!

  • @Martin-4D
    @Martin-4D 6 ปีที่แล้ว

    makes more sense now. Thanks :D

  • @idontevenknow3707
    @idontevenknow3707 6 ปีที่แล้ว

    Wow, thank you!!

  • @_DeProgrammer
    @_DeProgrammer 6 ปีที่แล้ว

    Looking forward to the next video David!

  • @XavierGoncalves89
    @XavierGoncalves89 6 ปีที่แล้ว +5

    have been doing form input validation for the past 3 days, even after watching the video and reading about regex, i still hate them

    • @joebazooks
      @joebazooks 6 ปีที่แล้ว

      regex hates you too

  • @wepranaga
    @wepranaga 6 ปีที่แล้ว +5

    i lovei ittt 😍😍😍

  • @ryanf591
    @ryanf591 6 ปีที่แล้ว

    Cool vid

  • @ahmadabdo1586
    @ahmadabdo1586 6 ปีที่แล้ว

    thanks very match

  • @theguyordie
    @theguyordie 6 ปีที่แล้ว

    Yay!

  • @tiennes2403
    @tiennes2403 6 ปีที่แล้ว

    Enjoyable Video, hope you will feature non-greedy operators for somthing like
    // matches "" in " ", whereas // matches " .
    As for feedback:
    I really liked the react js series, something similar would be awesome like already suggested.
    1) start to finish web app
    2) framework like polymer progressive web app
    Using codepen is awesome, it is so easy revisit the given example
    :-)

    • @tabgre7588
      @tabgre7588 6 ปีที่แล้ว

      any URL of you said 'The react js series'? Thanks

    • @tiennes2403
      @tiennes2403 6 ปีที่แล้ว

      th-cam.com/play/PLqGj3iMvMa4LFqyGab_aR7M0zfQm2KTuX.html

  • @djfreedom9505gamer
    @djfreedom9505gamer 6 ปีที่แล้ว +5

    Change speed to 1.25

  • @KL4NNNN
    @KL4NNNN 5 ปีที่แล้ว +1

    He claims to be the ultra basics of regex, therefore this is addressed to JS beginners, and yet he fails in so many ways:
    1- he doesn't explain why let reSlash = /^matchthis$/i uses // while let pattern ="^matchthis$" doesn't.
    2- Doesn't explain any method he uses
    3- when he writes let isValidNumber = phoneNumber.match(/^[\+\-\d\s]$/); he doesn't explain the basics of the regex itself (which are here: www.debuggex.com/cheatsheet/regex/javascript)
    4- he just pops up this console.log(`${phoneNumber} is ${isValidNumber ? 'valid' : 'INVALID'}`); without explaining it.
    5- he didn't script this video at all, and he even has to take some time to think what to say. Such negligence.
    and then nothing, I stopped watching this and unsubscribed. Because you cannot go and claim to teach the bare basics when you do not even touch the bare basics.

  • @dimitrisvain
    @dimitrisvain 4 ปีที่แล้ว

    This is not for beginners. If you don't know how to construct a regex expression, you can't learn it here.

  • @olxz384
    @olxz384 6 ปีที่แล้ว +1

    This is hardly "Ultra Basics".

    • @OfficialDevTips
      @OfficialDevTips  6 ปีที่แล้ว

      What do you mean? Too basic or too advanced?

  • @yashlotan7862
    @yashlotan7862 6 ปีที่แล้ว +5

    We want Travis back

    • @currentspw
      @currentspw 6 ปีที่แล้ว +18

      David is more technical and better fit moving forward.

    • @xShteff
      @xShteff 6 ปีที่แล้ว +9

      You'll have to deal with the fact that he gave away his channel. We're here for content, not personalities. If you still want to watch him, he has a personal TH-cam channel, but he doesnt upload guides/tutorials.

    • @rossgeography
      @rossgeography 6 ปีที่แล้ว

      I'm sure he'll check it every now and again - you can of course follow him directly

    • @mido5219
      @mido5219 6 ปีที่แล้ว

      David is doing a great job so far...