regular expression question

If the question was there are three items A, B, and C, and the user can pick any one of these items, however hte user must pick at least 3 and no more than 20 would the following work?

[A|B|C] [A|B|C] [A|B|C] [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]? [A|B|C]?

I know there is a way t make it shorter, but for now would this accept the correct entries?

Thanks

Re: regular expression question

Note that those spaces are significant ...

kind regards,

Jos

Re: regular expression question