I have certain text to be extracted between two fixed set of labels. I tried some methods given but I was not able to do achieve the result what I want.(might be I ma missing something).
In the below text, I would like to extract the text between labels “Contact Details” and
If you ordered an eBook you will receive a separate email with a registration key and instructions for accessing your eBook.
State : sdsdsds
Shipping Address: AAAAAAA
State : dsds
Please note that your order reference number is 232-3.
I thought of using in string , finding the index of contact details and then doing sub-string to extract the required text.
But I am not able to identify how to do in-string.
Is there any better method to perform the above operation.