Expression:
N | ( 1 { A | B | C | D | E1 | E2 | E3 } )
The value of the "N" descriptor or one or more of the listed descriptors without repetition.
The best I have:
@"^(N|(A|B|C|D|E1|E2|E3){1,})$"
But this does not interfere with repetition.
@"^(N|(A{0,1}B{0,1}...)$"
This prevents repetition, but then requires a certain order for the elements, which is also not very good.
Any ideas?
(I'm not sure that the bnf expression itself prohibits repetition, but this is what I need.)
source share