python中的正则表达式

我有这段文字:

DIAGNOSIS

M19.072 Primary osteoarthritis, left ankle and foot

O   RTHOSIS DEVICE(S) PRESCRIBED



gfgfgfggfgfg

111111111112ffffffffff
gfggggg

wwwwwwwwww




DIAGNOSIS

M17.12 Unilateral primary osteoarthritis, left knee

O   RTHOSIS DEVICE(S) PRESCRIBED




gfgfgfggfgfg
11111ttttfffff

gffffffffffffffffffffffffwwwwwwwwwree





DIAGNOSIS

M75.42 Impingement syndrome of left shoulder

O   RTHOSIS DEVICE(S) PRESCRIBED




gfgfgfggfgfg
111111111112ffffffffff

gfggggg
wwwwwwwwww

我只想得到这三行!

M19.072 Primary osteoarthritis, left ankle and foot
M17.12 Unilateral primary osteoarthritis, left knee
M75.42 Impingement syndrome of left shoulder

这是我的python代码,但有时没有用!

diagnosis_Answer = re.findall(r"(DIAGNOSIS(\s.*?)+RTHOSIS DEVICE)+", txt)