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 😞
Thx Great Video
Glad you liked it!
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 😞
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.