I need to extract version information from the following string
993-756-V01 ver 02a
What regex I need to use in order to extract 01 and 02 from 993-756-V01 ver 02a
I tried to extract the version substring i.e. V01 ver 02a with the below regex.
[A-Z][0-9]{2} ver [0-9]{2}
But is there a more direct way to extract the information
V(\d+)\s*ver\s*(\d+)[A-Z](?<major>[0-9]{2}) ver (?<minor>[0-9]{2})[A-Z]([0-9]{2}) ver ([0-9]{2})[A-Z](?<major>[0-9]+) ver (?<minor>[0-9]+)