I don't know, thereof the
>thus this would only capture one big group instead of 4 afaik =/

a `while((match = regex.exec(str)) !== null)` might look better yes, tho I don't mind the current regex, except for the bug (see my prev. comment)