RegexWars
Tier 6 · Adeptmatch

Colour Or Color

Match both the British and American spellings of "colour".

? makes the preceding item optional — zero or one of it.

Your pattern0 chars · par 7
//
Flags
Start typing — tests run as you go.0 of 5 visible tests passing
Test cases
  • colormust match
  • colourmust match
  • background-color: redmust match
  • colrmust not match
  • colouurmust not match

+ 3 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.