I have a large string and its stored in a string variable str. And i want to get a substring from that in c#?
Suppose the string is : \" Retrieves a substring from thi
string text = "Retrieves a substring from this instance. The substring starts at a specified character position. Some other text";
string result = text.Substring(text.IndexOf('.') + 1,text.LastIndexOf('.')-text.IndexOf('.'))
This will cut the part of string which lays between the special characters.