Re:Microsoft changed how it interviews software developers
by lazyasciiart on Sunday December 30, 2018 @11:44PM
(#18793055)
The regex can be any string made up of any number of those three characters in any order.
The minimum length will be the number of dots without a quantifier (i.e. exactly one character). If there is any dot followed by an asterisk, there is no maximum length. Otherwise, the maximum length will be the minimum length plus the number of dots followed by a question mark.
Writing the code for this is left as an exercise to the reader. ;)