CSci 115: Computing and the Internet
Home Syllabus Assignments Tests

Exam 2 Review

[1] [2] [3] [4] [5] [6] [7] [8]

Problem X2r.1.

Write a PHP regular expression for each of the following concepts.

a. strings starting with a digit
b. strings containing only alphabetic letters
a. ^[0-9]
b. ^[a-z]*$