I'm trying to match semantic versions with regex where the patch (or 3rd digit) is optional. I have most of this working, but the last, optional digits won't get matched in my group.
Example is at: https://regex101.com/r/ZuitFG/3
I'm trying to match the versions in:
Release 2.6 Now Live
Release 12.46.30 Now Live
Release 2.6.0 Now Live
Release 2.6.1 Now Live
with /Release (\d+\.\d+[\.\d]?)/
and it just matches x.x.
and never includes the last set of digits. I've re-read the explanation of what this regex does several times and I'm not able to see what I'm doing incorrectly.