I would like to grab Text distributed between two lines.
For Example :
PO Number Dept.number
4000813852 7
I would like to get PO Number 4000813852 It's like a table-based data but in the context of the whole document appears to be normal text.
I have used re.MULTILINE
like r'PO Number.*\n[0-9]+'
it workes in this case but it is not the best solution because maybe PO Number comes in the middle as
Invoice Number PO Number Dept.number
123456666 4000813852 7