What This Document Is
This document contains sample solutions for Notebook 5 of the Computing for Data Analysis (CSE 6040) course at Georgia Tech. It demonstrates correct implementations and test cases for exercises related to string processing and regular expressions.
Why This Document Matters
This resource is valuable for students enrolled in CSE 6040 who are working on Notebook 5. It serves as a reference to check their own work and understand the expected solutions for the assigned problems. It’s most useful *after* attempting the notebook exercises independently.
Common Limitations or Challenges
This document provides solutions, but does not offer detailed explanations of the underlying concepts. It won’t teach you *how* to solve these problems; it only shows *a* solution. Users still need a solid understanding of string manipulation and regular expressions to fully benefit from this resource. It does not cover all possible solutions, only those provided as samples.
What This Document Provides
This document includes:
* Completed code for the social security number validation exercise.
* Test cases verifying the correctness of the `is_ssn` function.
* Examples of using regular expressions for pattern matching, including `re.search` and `re.compile`.
* Demonstrations of pattern groups and named groups within regular expressions.
* Output from running the code cells, showing expected results.
This preview does *not* include a comprehensive explanation of regular expression syntax, detailed walkthroughs of the code logic, or additional practice problems.