I'm working in a project and unfortunately data extracted from another software needs more format. Take a look at this line
Instructor : 95371 XXX XXX XXX Associate Professor Course Name EE 311 Microprocessors lecture 834 1 32 3 3 1 08:00 AM - 08:50 AM 1 09:00 AM - 09:50 AM 3 10:00 AM - 10:50 AM 21 Total : 3 Section Position : Serial Campus Hrs Weekly Activity Semester: Time Schedule Type : 411 Reg. Regular First Semester 41/42 Rank : Course
Each line must start with Instructor
followed by :
and ID
. The name may not be available. After that the rank of the teacher is stated in the following group
Associate Professor
Assistant Professor
Lecturer
Teacher
Teaching Assistant
after the words lecture
or exercise
or practical
there are six number places, I need to extract the first one from the right.
Could you please suggest a startup regular expression for this? Qt library is welcomed.