2.5: Regular Expressions: Back References - Programming with Text

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

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

  • @supa1009
    @supa1009 5 лет назад +45

    In my opinion, this is the best tutorial series on regex on youtube. Thank a lot!

  • @JnWayn
    @JnWayn 7 месяцев назад

    This so far is the best video I've seen on back references. Thank you

  • @collinrea6183
    @collinrea6183 8 лет назад +19

    Thanks for the videos Daniel! You have a great way of teaching these subjects that can get very complicated quickly... I like how you break it down in to smaller sections and build on it. :thumbs-up:

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

    Thanks. These 5 videos on RegEx were exactly what I was looking for. You should consider doing a full series on this to an advance standard.

  • @garyzhong1489
    @garyzhong1489 7 лет назад +10

    watching your video is so much better than staring the document for hours

  • @NeoMennon
    @NeoMennon 6 лет назад +2

    The previous sections seen to be slow and unorganized to me, but this one finally click, bring everything together. I guess I should thank you for laying down all those foundations in the previous sections. You are obviously brilliant and knowledgeable. I learned a lot from your video. Thank you. If I can possible give you a tiny suggestion, it would be to have a more specific plan before you made the video, or even do some editing. Thanks again.

  • @خفیہبندہ
    @خفیہبندہ 5 лет назад

    Your explanation of regular expressions is awesome.

  • @chanm01
    @chanm01 5 лет назад +8

    These were so well done! (Don't tell my teacher I didn't really understand anything he was saying and then came here after class instead. 😂)

  • @VictorLucas-tk4gl
    @VictorLucas-tk4gl 2 года назад

    Wow That's Fun! Seriously, I enjoy the way you teach this. Thank you.

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

    Genius lessons! Thank you! Without your tutorials I am afraid I will never understand those gibberish regex characters!

  • @Natalia-cf6se
    @Natalia-cf6se 5 лет назад +1

    thank you. At the begining I was not sure if I like you or not, but after a few videos I'm sure I do :D Videos are good because you are actually doing this as live recording, you are making mistakes, you are not boring, and I no longer hate regex thanks to you :D You made my life easier.

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

    I am so glad I discovered this channel! Pieces are slowly falling into place now. I first came here searching for lookaheads in JS but I can't find a good lesson about them. Can anyone point me in the right direction? I Hope Daniel covers them in the following videos of this series =)

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

    Dude, how are more people not liking these videos! Big man videos, making this potentially confusing topic fun! Thanks a lot

  • @mkc0321
    @mkc0321 6 лет назад

    i was looking all your expression videos just for this problem solution...amazing

  • @hrishekessaraghueeti1258
    @hrishekessaraghueeti1258 6 лет назад

    Excellent videos on regex among the one that I found on youtube

  •  5 лет назад

    Enthusiastic, goofy, nerdy, geek, kinda weird, and cute? I found the best programming channel in existence!
    *Subscribed*

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

    Yep. I definitely love regex now.

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

    You make things simple and fun

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

    Sir, Thank you so much for the video, request you to tell me what is the interface that you are using to show us these examples.

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

      Try my workflow series! thecodingtrain.com/tracks/2018-workflow

  • @bballantyne3
    @bballantyne3 7 лет назад

    Still wide awake.. 5 videos in and it all still makes sense!

  • @dancorvalan3205
    @dancorvalan3205 6 месяцев назад

    Is there a way to use back reference on your real time entering commands on the terminal? Like having a way to re utilize a segment of we r typing without previously had to declare it. ¿?

  • @everestgjonaj
    @everestgjonaj 8 лет назад +1

    Hi daniel ! I really need you to answer this question.I Just coded a game in p5.js and i want to transfer dhe game to a buyer.How can i do that???(i dont know php or html just js so..)

  • @aliveagain
    @aliveagain 6 лет назад +4

    Hm curious how you would do unlimited duplicates.

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

    Thanks! Really clear!

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

    What's the reason why the regular expression did not capture the third I? Is it because it reads the first match from left to right only?

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

    So useful, thanks dude.

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

    nice teaching style yaar

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

    Hey, brilliant videos for RE and Processing. Really interested in a solution to the triple I problem you mention around the 4 minute mark. How would you solve this? I feel there is some deeper understanding of how regular expressions search that is keeping me from solving this. Thank you!!!

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

      \b(\w+)\s+(\1\b)+
      I think

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

    this was amazing.

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

    so awesome explanation )

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

    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.

  • @AdamSchelenbergCom
    @AdamSchelenbergCom 7 лет назад +1

    This is exciting and very powerful. Thx for the video.

  • @ahafeez88
    @ahafeez88 6 лет назад

    wish I found your videos earlier! Great content bud keep teaching!

  • @Hyp3rX360
    @Hyp3rX360 6 лет назад

    exactly what I was looking for!!! excellent videos!

  • @okeowoaderemi
    @okeowoaderemi 6 лет назад

    Damn so simple how you put it, surprised am just getting it

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

    I look up to you.

  • @dandyandy8961
    @dandyandy8961 7 лет назад

    Hello Daniel! One question: can you use quantifiers with back references? This video series was just what I needed, thanks!

    • @pneumaticJoe
      @pneumaticJoe 7 лет назад

      Good idea. Thanks.
      python code:
      data = "Your text text text goes here here."
      pattern = re.compile(r'(\b\w+\b)(\s\1)+') # backreference+
      pattern.sub(r'\1', data)

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

    Great!

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

    *2:41*
    _"/\b(\w+)\s+\1(?:\s+\1)?\b/g" will solve the problem I guess._
    *1) (?:) - non capturing group*
    *2) \s+ - one ore more times whitespace*
    *3) (?:)? - making non capturing group optional*

  • @binsitt
    @binsitt 6 лет назад

    Thank you!

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

    How to match those 3 I's !!??

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

    goood bro

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

    Crazy

  • @reimarpb
    @reimarpb 6 лет назад

    Remember: in JavaScript you should type $& instead of $0

  • @repiazza
    @repiazza 3 месяца назад

    You rock. To solve, just add a positive closure. And GGs thanks a lot. here it follows:
    --------------------------------
    \b(\w+)(\s\1)+\b
    ----------------