2020 Day19 Part 1 C# Help!

Well to be honest, the examples given don’t really make any sense to me. It’s like this rule is definitely one thing, or else it’s two other things, or three other things, or else it’s these two things or those two things, and I’m like, how do you interpret that? If each | represents two possibilities, and by the way there are 136 | marks in the complete list of rules, I guess that defines 2136 different possibilities.

My question is how to compare each message against this huge mass of possibilities in a way that makes sense, because the way the rules are written they begin with two ( indicating 4 possibilities for the first letter, I think, because I really don’t know how to query even the first part.

Say if I should read something about regular expressions what do you suggest that specific something ought to be, or could be?

/r/adventofcode Thread