3 ms·
"*" is "0 or more" and "+" is "1 or more", it looks for any number of "e" or "i" at the beginning and at least one capital letter. The diagram below the regex
by Izkata 2y ago
"*" is "0 or more" and "+" is "1 or more", it looks for any number of "e" or "i" at the beginning and at least one capital letter. The diagram below the regex is wrong.
Instead of
[ie]*-?[A-Z]+
it looks like they wanted
[ie]?-?[A-Z]