Is this correct? I’d have thought “colo*r” matches to both “color” and “colour”, but “colou*r” only to “colour”.
It’s correct. Some pattern matchers work the way you describe, but in a regular expression “u*” matches “zero or more u characters”. So “colou*r” matches “color”, “colour”, “colouuuuuuuuur”, etc.
(In this case one would typically use “colou?r”; “u?” matches “exactly zero or one u characters”, that is, “color”, “colour”, and nothing else.)
It’s correct. Some pattern matchers work the way you describe, but in a regular expression “u*” matches “zero or more u characters”. So “colou*r” matches “color”, “colour”, “colouuuuuuuuur”, etc.
(In this case one would typically use “colou?r”; “u?” matches “exactly zero or one u characters”, that is, “color”, “colour”, and nothing else.)