0. Do all the RegexOne exercises

1. Make a list of all files in the current directory worksheets but remove the file extnesions and the leading numbers in the filename.


In [ ]:

2. Count how often the word markdown occurs in all files in the current directory worksheets.


In [ ]:

3. Write the following string to a file called jabberwocky.txt.

Twas brillig, and the slithy toves
  Did gyre and gimble in the wabe:
All mimsy were the borogoves,
  And the mome raths outgrabe.

Now read in the file line by line and save only the lines that conatin two or more words starting with the same letter into a new file called truncated_jabberwocky.txt.


In [ ]:

4. Read the file jabberwocky.txt again. Using a regular expression, replace all words containing two or more vowels with the reversed word - e.g. brillig would become gillirb.


In [ ]: