This solution somewhat solves my issue but need to exclude any characters after Ordernr until a carriage return(new line)
- 21Sid1
- Ordernr
- E17222
- By
- Seller
I am using ordernr[\r\n]+([^\n\r]+) to match ordernr and E17222 above. I want to do the same for the case below:
- 21Sid1
- Ordernr Skip everything upto new line
- E17222
- By
- Seller
Basically exclude everything when Ordernr is found until a new line and grab the next line