it's a simplified version mac address, I want to match the numbers to an array, the following code's not working as expected. match result only contains the last match '66'.
const matches = '11:22:33:44:55:66'.matchAll(/^((\d{2}):?){6}$/g); console.log([...matches]);