这是html:
<font color="#000fff" size="1" face="Arial">Genuine Windows® 7 Home Premium (64-bit)</font>
这就是我想要转换的:
[color="#000fff"]Genuine Windows® 7 Home Premium (64-bit)[/color]
这是我尝试过的:
var post = Regex.Replace(post, "<font color=\"([a-fA-F0-9\\#]+)\">(.*?)</font>",
m => "[color=\"" + m.Groups[1].Value + "\"]" + m.Groups[2].Value + "[/color]");
它不匹配。