I have N patterns that I want to match with one single regex, each pattern has an individual regex. What I'm doing right now is joining each regex with the '|' operator and giving each individual regex a group name.
In the example below I'm looking to get the matched group (Stream, Triple or Double) without having to iterate through all the groups in the match. Is this possible ?
/* language=regex */
@"(?<Stream>((C[b-i][0-3][5-9]){7,}(C[b-i][0-3].)?)+)" +
"|(?<Triple>(Ca[0-4].)(Ca[0-4].)(C...))" +
"|(?<Double>(Ca[0-4].)(C...))",