public List<string> ParseString(string _string4Parse,string _beginVal,string _endVal) { List<string> res = new List<string>(); int _begin = 0; while ((_begin = _string4Parse.IndexOf(_beginVal, _begin)) > -1) { _begin += _beginVal.Length; int _length = _string4Parse.IndexOf(_endVal, _begin)-_begin; res.Add(_string4Parse.Substring(_begin, _length)); } return res; }
No comments:
Post a Comment
Note: only a member of this blog may post a comment.