I want to make a regular expression where it returns all the occurrence of text that is in between a and first occurence of b or c.
so I tried this code:
text = 'dfgahfjbjicij'
re.findall('a(.*?)(b|c)',text)
output
[('hfj', 'b')]
expected:
['hfj']
How do I make it so the first occurrence is the return not a tuple?