windows - How to extract the version from the name of a NuGet package file using PowerShell? - Stack Overflow

PHOTO EMBED

Wed Aug 14 2024 10:07:54 GMT+0000 (Coordinated Universal Time)

Saved by @baamn

(?<=(?<id>.+))\.(?<version>((\d+\.\d+(\.\d+)?))(?<suffix>(-.*)?))\.nupkg')
content_copyCOPY

https://stackoverflow.com/questions/61893931/how-to-extract-the-version-from-the-name-of-a-nuget-package-file-using-powershel