public static string RegStr(string objStr) { string a = ""; string returnStr =""; MatchCollection ml = Regex.Matches(objStr, "<lrcid>.*?</lrcid>"); foreach (Match m in ml) { a = m.Value.Replace("<lrcid>", ""); a = a.Replace("</lrcid>", ""); returnStr=a; break; } return returnStr; }
发表评论: