I am trying to extract something from an email. The general format of the email will always be:
blablablablabllabla hello my friend.
[what I want]
Goodbye my friend blablablabla
Now I did:
string.LastIndexOf("hello my friend");
string.IndexOf("Goodbye my friend");
This will give me a point before it starts, and a point after it starts. What method can I use for this? I found:
String.Substring(Int32, Int32)
But this only takes the start position.
What can I use?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…