【发布时间】:2013-02-17 08:41:57
【问题描述】:
我有一个关于 C# 中字符串操作的问题。
假设我有一个字符串:
"Today I ate a <a href="link here "> chocolate </a> at the <a href=\"another link here"> supermarket</a>. It was a brand of <a href=\"3rd link">Contoso</a>
我愿意:
"Today I ate a chocolate at the supermarket. It was a brand of Contoso.
我可以删除其中的 </a> 部分,但不确定如何删除 <a href 和 > 之间的所有内容和任何内容
我该怎么做呢?
提前致谢!
【问题讨论】:
-
看here