using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 取中间文本
{
class TextCao
{
public static string QuMiddle(string strYuan, string strQian,string strHou)
{
int int1= strYuan.IndexOf(strQian);
int int2 = strYuan.IndexOf(strHou);
//获得中间代码的长度
int lengmid = strYuan.Substring(int1).Length - strYuan.Substring(int2).Length-strQian.Length;
//获得中间代码的index
int intmid = int1 + strQian.Length;
//
string strM = strYuan.Substring(intmid, lengmid);
return strM;
}
}
}