I need to extract a string from between 2 delimiters, to be specific, I have had to attach an email address to an attachment file name so that it can be processed and sent back to the sender. (This is within Outlook 2013 VBA)
The format of the file name is: ADDRjohnDOTdoeATfooDOTcomXADDRA646A10.FOO
My delimiters are ADDR and XADDR
What I need to do is split the string and return both the email string from between the delimiters and the file name after XADDR.
Both the email address and the file name can vary in length, the file extension is not fixed.
What is fixed is ADDR will always be the first 4 characters, and .XXX will be the last 3 characters.