I am working on a program which fetches strings like these:
s = 'GPA: 3.4 GRE: 317 Round: Round 2 | West'
d = 'GPA: 3.7 GRE: 328 Round: Round 3 | Singapore'
a = 'GPA: undergrad: 3.68 grad: DPT 3.32 GMAT Waiver Round: Round 3'
c = 'GPA: 3.2 GMAT: 750 Round: Rolling Admissions | NY'
Until now I was just fetching the number of rounds using re expressions. But for some exceptions like c, I need to get it to return 'rolling admissions' as well. Is there a way to get data between round and the pipe sign?
I had been doing like this:
R = re.findall('\S*Round ([a-zA-Z0-9]+)', d)
print(''.join(R))