Closed sudeephb closed 9 months ago
Current regular expression allows: alphanumeric[,alphanumeric]
import re s = "AZ-AGGR" regex = r'(\w+[,\w+]*)' re.findall(regex, s) ['AZ', 'AGGR']
However, there are host aggregates that may have hyphens or underscores.
regex = r'([\w-]+[,[\w-]+]*)' re.findall(regex, s) ['AZ-AGGR']
Imported from Launchpad using lp2gh.
date created: 2020-01-14T12:45:42Z
owner: aluria
assignee: aluria
the launchpad url
(by aluria) updated regexp to r'([\w-]+(?:,[\w-]+)*)'
Current regular expression allows: alphanumeric[,alphanumeric]
However, there are host aggregates that may have hyphens or underscores.
Imported from Launchpad using lp2gh.
date created: 2020-01-14T12:45:42Z
owner: aluria
assignee: aluria
the launchpad url