>_ IzzyLab

Topic breakdown

This task is about an exact number of repetitions: a hex color is a hash and exactly six characters from the set of hex digits. "Exactly six" is set not by + (one or more, with no upper bound) and not by *, but by the counting quantifier {6} — otherwise the pattern would accidentally catch a shorter or longer sequence. The hex-digit class is built manually from ranges of digits and letters, and since CSS allows uppercase letters too, the upper case must be included as well. The hash doesn't need escaping — it has no special meaning in regex.

What's checked

  1. All colors found
  2. All #rrggbb colors found

What it looks like