使用正则表达式获取指定的字符串的值

/// /// 根据传入的条件,经过正则表达式查询匹配的值 /// /// 要检索的字符串 /// 正则条件 /// 要取值的位置 /// 查询到的值 public static string GetMatchByIndex(string text, string regex, int index) { if (string.IsNullOrEmpty(text)) { return “”; }
相关文章
相关标签/搜索