CSci 39542 Syllabus    Resources    Coursework



Program 5: Regex Logs
CSci 39542: Introduction to Data Science
Department of Computer Science
Hunter College, City University of New York
Spring 2022


Classwork    Quizzes    Homework    Project   

Program Description



Program 5: Regex Logs.Due noon, Thursday, 10 March.
Learning Objective: to use regular expressions to parse from log data.
Available Libraries: Regular expressions (re) and core Python 3.6+. (Note: not pandas)
Sample Datasets:
one_liner_log.txt, multi_liner_log.txt, traceback_log_simple.txt, traceback_log_complex.txt.

This program applies regular expressions (covered in Lecture 7 & DS 100: Sections 13.2-3) to parse information from Python logs. The assignment is broken into the following functions to allow for unit testing: