Here we have a zoom chat history from which I would like to extract all of the student ID, for example, 38150002, and the name of the ID owner (e.g. smith example).
17:00:44 From Smith Example : 38150002 Smith Example
17:00:54 From Smith Example : 41050002 Smith Middle Example
17:01:04 From Smith Example : 37-191129 Smith One Example
17:01:12 From Smith Example : 31-086612 Smith Example
17:01:20 From Smith Example : 40-250233 Smith Example
17:01:33 From Smith Example : 38129055 Smith Example
17:01:39 From Smith Example : 38-129055 Smith Example Joe
I succeed to extract the student id with a set pattern with re.findall.
lst = re.findall('\d\d-\d+', ex) #for id like 40-250233
The question is how can I extract the name following the student id?