【发布时间】:2010-12-07 11:02:10
【问题描述】:
我认为这应该很简单。
我有这个字符串:
[quote=Joe Johnson|1]Hi![/quote]
应该用类似的东西替换
<div class="quote">Hi!<div><a href="users/details/1">JoeJohnson</a></div></div>
我很确定这不会很顺利。到目前为止,我有这个:
Regex regexQuote = new Regex(@"\[quote\=(.*?)\|(.*?)\](.*?)\[\/quote\]");
谁能指出我正确的方向?
任何帮助表示赞赏!
【问题讨论】: