I'm trying to use regex to pull just the patch version out of some semvars in the form v1.2.3
I've got some regex which can match the v1.2.
part however I'm struggling to get the other part, the 3
(which I actually want back)
I'm using ^v\d+\.\d+\.
to select the first part.
I'm trying to use a negative lookahead with this to then select everything after it with (?!(v\d+\.\d+\.)).*
but this just seems to return everything after the v
rather than everything after the group
Any pointers would be really appreciated, thanks!