Ruotong's Regex Exercise

by Ruotong Yang

29 Mar 2016

Reflection The first two exercises help us practice the methods discussed in the textbook which can be quite useful. The re.search() and re.findall() are two tools that are helpful when people search through files for certain contents. The third exercise help us review the materials of exercise 4 of last assignment and how to convert a list to a string. These exercises deepen our understanding of strings and lists and require a comprehension of these two main sturctures.

Question I first tried to do this in Python 3 of Trinket, but it cannot be shared, why?

Ruotong Yang is a master student in STOR department at UNC Chapel Hill. Find Ruotong Yang on Twitter, Github, and on the web.