Ah. The difference is that you're trying partial matches, as opposed to full matches from the specified patterns.
edit: and by full match (since this seems to be the source of some confusion in another subthread), I explicitly mean anchored with your \A...\Z or whatever you want to use.
Something as simple as "OO\nDO" should be valid. But also "OO\nDD" and myriad other solutions.