What I want to do is to retrieve f.e. the name and date stored somewhere within a TString based on the preceding text.
Dear mister Long,
Client name: Sally Field
With kind regards,
In this example a function would:
- Search for string "Client name: "
- If found, the function will return "Sally Field" (whole text after the searchstring)
- Search for string "Date: "
- If found, the function will return "23/03/2014" (whole text after the searchstring)
How can this be done?