##################
# CS0931: ACT3-2 #
# 4/2/15         #
##################

# You must import 're' for regular expressions to work!
import re

##################
# Task 1         #
##################
exampleText = "A cute kitten was found today at 201 Thayer Street. Call 345-9700 for more information."

# Print a message saying whether or not "kitten" is in exampleText.


# Print a message saying whether or not exampleText contains any digits.


# Print a message saying whether or not example Text contains a phone number.



##################
# Tasks 2 and 3  #
##################
myList = ["king kong", "tennis", "ping pong", "king charles", "ding dong"]

# Loop over the elements in myList and use re.match to check if each rhymes with "ping pong".
# Print the element out if and only if it matches.
# Hint: Here's a regular expreesion to check if two words both start with the letter "d": 
#       "d\w+\sd\w+" ("d", at least one letter, a space, "d", at least one letter)



# Be sure to modify the code you wrote in Task 2 for Task 3

##################
# Task 4         #
##################
blurb = """Ken Gregory
Accountant
Angstrom, North American Division
Building A, Room 232
Mountain View, CA
650-555-9999 (office), 650-555-9999 (cell)
Wife's name: Suzanne
Children: Robert (9), Tori (12)
628-555-1111 (home)

Martha Nguyen
CFO
Watermelon, North American Division
Building E, Room 121
Austin, TX
527-412-1111 (office), 527-123-9999 (cell)
Husband's name: Bryan
Children: Sonia (3), Trevor (21)
737-245-9999 (home)

Hannah Richards
CEO
Megasoft, North American Division
Building 42, Room 323
Redmond, WA
425-444-9999 (office), 206-443-1111 (cell)
Wife's name: Sarah
Children: Joseph (10), Carlos (16)
425-342-9999 (home)"""

# Find all the telephone numbers (###-###-####) in blurb and print them.
# Use the example in the Activity 3-2 handout for guidance.




# Now, use groups to separate the area code from the rest of the phone number.
# Print out each number in the form: "Tel: ###-####    (Area ###)"



