Group oldDomain(?<oldDomain>https?:\/\/(?:registry.yarnpkg.com|registry.npmjs.org|[^\/]+)) httpthe literal text http (case sensitive) s?optionally matches the literal s (11510 / 1638 / 7316) (case sensitive)
:the literal : (5810 / 728 / 3A16)
\/the literal / (4710 / 578 / 2F16)
\/the literal / (4710 / 578 / 2F16)
Non-Capturing Group(?:registry.yarnpkg.com|registry.npmjs.org|[^\/]+) 1st Alternativeregistry.yarnpkg.com registrythe literal text registry (case sensitive) .any character (except for line terminators)
yarnpkgthe literal text yarnpkg (case sensitive) .any character (except for line terminators)
comthe literal text com (case sensitive) 2nd Alternativeregistry.npmjs.org registrythe literal text registry (case sensitive) .any character (except for line terminators)
npmjsthe literal text npmjs (case sensitive) .any character (except for line terminators)
orgthe literal text org (case sensitive) Negated Character Class[^\/]+ +matches at least one character outside the set below:
\/the literal / (4710 / 578 / 2F16)
\/the literal / (4710 / 578 / 2F16)
Group pkgFullName(?<pkgFullName>(?:(?<scopeName>@[\w-]+)(?:\/|%2f))?(?<pkgName>[\w-]+)) Non-Capturing Group(?:(?<scopeName>@[\w-]+)(?:\/|%2f))? ?repeats the group contents below at most once:
Group scopeName(?<scopeName>@[\w-]+) @the literal @ (6410 / 1008 / 4016)
+matches at least one character from the set below:
\wany word character
-the literal - (4510 / 558 / 2D16)
Non-Capturing Group(?:\/|%2f) \/the literal / (4710 / 578 / 2F16)
%2fthe literal text %2f (case sensitive) Group pkgName(?<pkgName>[\w-]+) +matches at least one character from the set below:
\wany word character
-the literal - (4510 / 558 / 2D16)
\/the literal / (4710 / 578 / 2F16)
Non-Capturing Group(?:-|download) -the literal - (4510 / 558 / 2D16)
downloadthe literal text download (case sensitive) \/the literal / (4710 / 578 / 2F16)
Negated Character Class[^#]+ +matches at least one character outside the set below:
#the literal # (3510 / 438 / 2316)
-the literal - (4510 / 558 / 2D16)
Group version(?<version>[\w\.]+?) +?matches at least one character from the set below:
\wany word character
\.the literal . (4610 / 568 / 2E16)
\.the literal . (4610 / 568 / 2E16)
Group fileExt(?<fileExt>\w+) \w+any word character, repeated at least once
#the literal # (3510 / 438 / 2316)
\w*any word character, repeated any number of times
g modifier: global. Finds all matches instead of stopping after the first