///<summary>/// 把两个字符中间的字符提取出来///</summary>///<param name="str">字符串</param>///<param name="a">第一个字符</param>///<param name="b">第二个字符</param>///<param name="le">第一个字符初始开始数的索引</param>///<param name="ri">第二个字符初始开始数的索引</param>///<param name="list">提取出来的字符组成的集合</param>publicvoidgetArryList(string str, char a, char b, int le, int ri, ref List<string> list)
{
int left = le;
int right = ri;
int one = str.IndexOf('[', left + 1);
int two = str.IndexOf(']', right + 1);
left = one;
right = two;
if (one >= 0 && two >= 0)
{
list.Add(str.Substring(one + 1, right - (left + 1)));
int i = str.Length;
int qq = str.LastIndexOf('[');
int ii = str.LastIndexOf(']');
if (left != str.LastIndexOf('[') && right != str.LastIndexOf(']'))
{
getArryList(str, a, b, left, right, ref list) ;
}
}
}