- const string = 'Favorite GitHub repos: dupontdenis/bureauwindows dupontdenis/HTML_TD3 v8/v8.dev',
- regex = /\b(?<owner>[a-z0-9]+)\/(?<repo>[a-z0-9\.]+)\b/g;
- for (const match of string.matchAll(regex)){
- console.log(`${match[0]} at ${match.index} with '${match.input}'`);
- console.log(`owner: ${match.groups.owner}`);
- console.log(`repo: ${match.groups.repo}`)
- }