For Lab 13, you are to going to edit a text file and and upload the edited file to sakai under lab 13. At the top of the file, AFTER you have finished doing all of the editing, type the regexes which you used to edit the file. Place the find and replace on one line for each task, separated by a tab.
For this lab, you will be editing Edgar Allen Poe's The Raven using regexes.
The first task is to replace all occurences of the word "of" with the word "if". For example, "Of all of the mistakes to be made..." would be changed to "If all of the mistakes to be made...". However, "off" would remain the word "off", and would not become the word "iff".
The second task is to repeat any word which follow a comma. For example, "This sentence has a comma, and I'm not exactly sure for what reason." Would be changed to "This sentence has a comma, and and I'm not exactly sure for what reason."
The third task is to replace all words beginning with the letters "i" or "t" with the word "perfume", except for when that word is simply the word "I". For example, the sentence "I went into the store." would become "I went perfume perfume store."
As with all labs in this class, you may finish posting the lab after class, up until 10 pm.
By submitting the lab you are pledging that you have neither given nor received unauthorized help.