I have a string:
a="12cdanfaw3i8hanjwofaef56ghah398hafadsf12cds;dkh38hfasdf56ghaldkshf12cdasdiuhf93f2asdf56gh"
I'm trying to extract a string between 12cd and 56gh. Those values would be anfaw3i8hanjwofaef, s;dkh38hfasdf, asdiuhf93f2asdf
The regex that I have is re.findall(r'12cd.*56gh', a).
But the patterns are included in the output.
How do I write the regex to not include it in the output?
Thanks