Skip to content

Instantly share code, notes, and snippets.

@Gh0stWalk3r
Last active February 24, 2020 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gh0stWalk3r/6e74c1b7040e5fa89eebc5aeb062d57c to your computer and use it in GitHub Desktop.
Save Gh0stWalk3r/6e74c1b7040e5fa89eebc5aeb062d57c to your computer and use it in GitHub Desktop.
Regex for getting version and package ID of NuGet packages with SemVer2

^(?<packageID>.*?)\.(?<version>(?:\.?[0-9]+){3,}(?:[-a-z]+)?(?:\.\d+)?)\.nupkg$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment