Unlock The Power of RegEx! JavaScript Tutorial

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 4

  • @java3845
    @java3845 Рік тому

    Thx Great Video

  • @stevenaschoff
    @stevenaschoff Рік тому +1

    What javascript engine or browser are you using. When I use the match(pattern) method, I don't get the index and group information back, I just get an array of matched results. I used the Mozilla regex runner and I am using Brave. Looking at the example 5 output. I used that test verbatim and I did not get back what you did. A little confused right now. Thanks!
    Update: I see you are using node. Not sure why they would behave so differently. I would think it would be the same under the hood 😞

    • @DevDrawer
      @DevDrawer  Рік тому +1

      Yeah, that is weird. I'm glad you got it figured out. I was able to replicate what you are saying in the browser though.