Which regular expression matches "color" and "colour"?

Which regular expression matches "color" and "colour"?
A. col[0-9]+our
B. colo?ur
C. colou?r
D. ]a-z]{7}

cisco-exams

6 thoughts on “Which regular expression matches "color" and "colour"?

  1. * – Zero or more
    ? – Zero or more
    + – One or more

    go*gle contains {ggle, gogle, google, gooogle, goooogle, …}
    go+gle contains {gogle, google, gooogle, goooogle, …}

    so it´s “C”

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.