UNIVERSITY AT BUFFALO, THE STATE UNIVERSITY OF NEW YORK
The Department of Computer Science & Engineering
cse@buffalo
UB CSE 111

 

Homework 5

12 points
Due Wednesday July 20, 2011
  1. Read this and this paper on Word regular expressions. Work through the examples. Both of these are a bit older and refer to Office 2002, so some things will be different for Office 2010, but most things outside of where they have you clicking on things are the same. Use ctrl+f to get to the find box. The second document gets a bit complex at the end - you can stop when you can complete the work for problem 2.
  2. Write a regular expression that would search through a document and find items formatted like addresses [6pts].
  3. Draw a finite state diagram showing interactions with an ATM machine. Explain your diagram [6pts].