I've stuck with regex problem using .NET. For example, I have next regex pattern: (?'group1'A|C)|(?'group2'B|C)|(?'group3'A|B|C)
When I do match of "AXYZ" I receive match object which contains Value and Groups; if I go to Groups I'll see that only one group has success in true - group1 (group3 is in false). If I do match of "BXYZ" I'll receive only group2 with success in true (group3 is in false).
How could I receive in match not only one group but all groups satisfying the match?
For example above it should be: group1 & group3 in "AXYZ" and group2 & group3 in "BXYZ".
All above is only example in real system there are different patterns (3+ letters each) and more complicated input text (1000+ words).