The current documentation at https://octopus.com/docs/key-concepts/projects/channels#Channels-tags says
“Following the standard 2.0.0 semver syntax, a pre-release tag is the alpha numeric text that can appear after the standard major.minor.patch pattern immediately following a hyphen.”
Following this is a table which includes the example:
.* matches any pre-release
However that pattern is matching ALL of the following versions, rather than just the last line!
If I use
(?!^$) then it does match the last line as I require.
So is the documentation wrong in that the regex is not just matching after a hyphen, or is the application wrong in that it is not checking for a hyphen? (or am I just confused