Question: Consider the following student transcript from UOB in the 1990s. Assume, they have an electronic copy and they want to scan these using regular expressions.
Consider the following student transcript from UOB in the 1990s. Assume, they have an electronic copy and they want to scan these using regular expressions.
Write the Python regular expression (only) that will match one row of course information. The needed information are the course code, title, credits, and grade. Don't worry about multiple line titles just ignore the continuation.
Make sure you use groups to extract needed data when specifying the regular expression.
1997/1998 Second Semester B.Sc. in Compute* Science Course No. Course Name Credit Grade Status Rep 100 PHED S 0 0 241 CS 305 CS 312 CS 382 CS 272 CIS PRINCIPLES OF PHYSICAL AND HEALTH EDUCATION ASSEMBLY LANGUAGE PROGRAMING OBJECT ORIENTED CONCEPTS AND SYSTEMS FORMAL LANGUAGES AND AUTOMATA ASSIGNMENTS IN COMPUTER SCIENCE COMPUTERIZED ACCOUNTING 3 3 3 B WP A C+ 0 NO 11 Semester -Cr. Attended: Cumulative -Cr. Attended: Passed: 11 Passed: 54 GPA : GPA : 3.27 3.46 D 54 1997/1998 Summer Semester B.Sc. in Computer Science Course No. Course Name Credit Grade Status Rep 319 CS COMPUTER ARCHITECTURE 3 B . Semester -Cr. Attended: Cumulative -Cr. Attended: Passed: 3 Passed: 57 GPA GPA 3.00 3.. 43 57 . 1997/1998 Second Semester B.Sc. in Compute* Science Course No. Course Name Credit Grade Status Rep 100 PHED S 0 0 241 CS 305 CS 312 CS 382 CS 272 CIS PRINCIPLES OF PHYSICAL AND HEALTH EDUCATION ASSEMBLY LANGUAGE PROGRAMING OBJECT ORIENTED CONCEPTS AND SYSTEMS FORMAL LANGUAGES AND AUTOMATA ASSIGNMENTS IN COMPUTER SCIENCE COMPUTERIZED ACCOUNTING 3 3 3 B WP A C+ 0 NO 11 Semester -Cr. Attended: Cumulative -Cr. Attended: Passed: 11 Passed: 54 GPA : GPA : 3.27 3.46 D 54 1997/1998 Summer Semester B.Sc. in Computer Science Course No. Course Name Credit Grade Status Rep 319 CS COMPUTER ARCHITECTURE 3 B . Semester -Cr. Attended: Cumulative -Cr. Attended: Passed: 3 Passed: 57 GPA GPA 3.00 3.. 43 57
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
