I am 2 days old to regex,
I have a small query
When I use the below regex statement
re.findall('([ad])[\-.\s+]([be])[\-.\s+]([cf])*', 'a-b-c d-e-f')
I recieve an output
[('a', 'b', 'c'), ('d', 'e', 'f')]
However the output I desire is
['a-b-c', 'd-e-f']
I've tried ?, $ and other expressions but no luck yet.
Please let me know If the expression can be molded a bit to get the desire output.
Thanks