I have below type of components in jira.I am trying to create the regex to fetch the value from these components .This value could be anything e.g 1.1 or 1.a or a.a or nothing for any components but remember I don't need anything like R or (U1) just need 1.0,1.1,1.a,a.1,1.x
so I need only the first character or number before period(.) and first character or number after period(.) or if there is no period(.) then blank
need
PCN 9.4U1 (Act)----------------------------1.4
PCN 9.5 (Act)------------------------------1.5
PCN 9.6 (Act)------------------------------1.6
R AA 7.5U5 (Arch)--------------------------2.5
R AA 7.6U2 (Rel)--------------------------2.6
R AA 37.7R (Arch)---------------------------2.7
R TEST 1.x (Fut)-------------------------2.x
R testp U2---------------------------------------no value
I am using the below regex to get the value
Fixversionmat = re.findall(r"(\d+\.\d+)", jsonToPython['name'])
but this gives me result only when value is something like that 1.1 and in other cases it fails.