I have this input: FBBBBFFRRL
The first 7 characters can be F or B and the last 3 are R or L.
I want to split this into 2 strings so here is what I've done:
regex = re.findall('^((F|B){7})', 'FBBBBFFRRL')
print(regex)
I don't understand why I got this:
[('FBBBBFF', 'F')]
The first item is correct but why do I also get a single F?