5.6 Regular Expressions Review

11. Regular Expressions review:

(1) What do the following regular expressions match?
	/^cat$/
	/^$/
	/^/

(2) $ cat word.list
Iraqi
Iraqian
miqra
qasida
qintar
qoph
zaqqum
Iraq
Qantas
Quinto
quote
   What does /q[^u]/ match within word.list?
   How can you match Iraq too?
   How can you match Qantas as well?

(3) Write a regular expression that will match any date of the form:
	mm/dd/yy, mm-dd-yy, mm.dd.yy

Questions? Robert Katz: rkatz@ned.highline.edu
Last Update July 23, 2002