Earlier quoted context omitted.
.(C|HH)* should match against " " or against "A " or against "B" or against "ZZZZZZZ". But this puzzle doesn't recognize any of those as valid.
That's not the case... .(C|HH)* matches with single character followed by any number of C's or HH's. So " " or "B" would work but in the puzzle the full line has to match so those aren't possible
R?(CR)*MC[MA]* is not matching for the full line RMCMMMMMMMMM
Why?