I forgot that method exist, lol.
Thanks Johan! I have a lot of things to read about so I'll come back to this as soon as I have time xD
You have some things wrong, but to explain what actually happens would make two chapters of a good book on regular expression ( the one on capturing groups, and the one on how matching actually works ).
I really don't feel like writing that book ATM. Try finding some write-up somebody will doubtlessly have done already. You now know what to search for.
...for anyone who don't know JS.
I can't fully grasp what happens behind the scenes here.
This is how I understand it:
Could someone please correct where I'm wrong and explain how it actually works?
This one seems to be legit
“Its the not the Destination, It's the journey.” - Mao Zedong
very interesting :)