regexp

  1.  const string = 'Favorite GitHub repos: dupontdenis/bureauwindows dupontdenis/HTML_TD3 v8/v8.dev',

  2. regex = /\b(?<owner>[a-z0-9]+)\/(?<repo>[a-z0-9\.]+)\b/g;

  3. for (const match of string.matchAll(regex)){
  4.   console.log(`${match[0]} at ${match.index} with '${match.input}'`);
  5.   console.log(`owner: ${match.groups.owner}`);
  6.   console.log(`repo:  ${match.groups.repo}`)
  7. }