CSCH3320homework2 - Tiauna Hendrickson Homework 2 Due :...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Tiauna Hendrickson Homework 2 Due : Monday, 06/28/2010, Email to jhe9@cs.gsu.edu Question 1 (15) Describe the meaning for each regular expression below. For each expression, give 3 different examples that match the patte r n a. /^[A-Z]. .$/ Line starting with one capital letter A-Z followed by any 2 characters at the end of the line. A bg675 33 Judge Me Part-time Job !! b. /^[A-Z][a-z]*3[0-5]/ Line starting with one capital letter A-Z followed by a lowercase letter a-z zero or many times, followed by a 3 and then any dig Tiauna 32 Pa 31 porch Crayons stink 1 c. /^[A-Za-z]*[^,][A-Za-z]*$/ Line starting with any capital or lowercase letter a-z zero or many times, not followed by a comma, followed by another letter c a L Run Y 678 p I love Jaden Question 2: (20) (Grep/egrep exercise) Given the file 'datebook' (you can download it from website http://www.cs.gsu.edu/pan/csc3320/databook.txt) containing the lines of the following format: type first-name last-name email-address do the following queries:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/23/2010 for the course SOC 1101 taught by Professor Name during the Spring '10 term at Abraham Baldwin Agricultural College.

Page1 / 4

CSCH3320homework2 - Tiauna Hendrickson Homework 2 Due :...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online