CSci 150: Foundations of computer science I
Home Syllabus Assignments Tests

printable version

Quiz 4

[1] [2] [3] [4]

Problem Q4.1.

[6 pts] Write a regular expression for a two- or four-year digit number, allowing for leading zeroes. Examples include 03 or 1776, but not 3, 025, or 814.