این متد رو یافتم.
public static string getBetween(this string strSource, string strStart, string strEnd)
{
int Start, End;
if (strSource.Contains(strStart) && strSource.Contains(strEnd))
{
Start = strSource.IndexOf(strStart, 0) + strStart.Length;
End = strSource.IndexOf(strEnd, Start);
return strStart + strSource.Substring(Start, End - Start) + strEnd;
}
else
{
return "";
}
}