Find the regular expression of the picture label in HTML

xiaoxiao2021-03-06  67

Using system.text.regularExpressions;

String s = "...............";

Regex re = new regex (@ "] src = (?:" "(? [^"] ) "" "" (? [^ '] ) | (? / s )) [^>] *>, regexoptions.ignorecase; matchcollection mc = re.matches (s); console.writeline (mc.count); Foreach (Match M IN MC) Console .Writeline ("{0} -> {1}", M.Value, M.Groups ["src"]. Value);

转载请注明原文地址:https://www.9cbs.com/read-110460.html

New Post(0)