in reply to •Re^2: Pattern Matching, left-to-right
in thread Pattern Matching, left-to-right

I get AB&F^CD when I run it, which the OP says is what should happen. By his description of the task the code is also exactly what he's after. Which case do you have in mind that it fails for?

Makeshifts last the longest.