【发布时间】:2012-06-01 12:40:35
【问题描述】:
我有一个小问题。我试图让文本从 html 元素中消失。 示例输入:
I want this text I want this text I want this text <I don't want this text/>
I want this text I wan this text <I don't>want this</text>
有人知道正则表达式怎么可能吗?我认为我可以通过删除元素文本来实现。那么,有人知道这个问题的另一种解决方案吗?请帮帮我。
【问题讨论】:
-
所以你想要
< ... />之外的所有东西 -
是的...但我也想在 <...>...