开发者

Find All Span in a Text

I have a text of 10000000 character in that I want to find all the span which have the font-family:Symbol" my text may have many span without font-family:Symbol" but I just want to know only those span which have font-family:Sym开发者_如何学运维bol" and it's text on which it is apply.

any one please help me to find that span with text via any REGX.


try to use this regex

string strRegex = @"(<span[\s\w\W]*?style='font-family:Symbol'[\s\w\W]*?>([\s\w\W])*?</span>)";

Regex myRegex = new Regex(strRegex);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜