Continuing the discussion from freeCodeCamp Challenge Guide: Spinal Tap Case:
In solution 2, what is the difference between .split(/(?:_| )+/)
and .split(/(_| )+/)
?
I understand that the question mark whith the colon (?: )
means that the group is matched but is not captured for back-referencing, but i don’t see the point of it in this solution. Somebody can helpme to understand this?
Thanks in advance.