作者collin2315 (梭哈!)
看板perl
标题Re: [问题] 关於regular expression
时间Sat Aug 18 01:26:38 2007
再请问一下
假如我的句子中不只一个标签,如下:
<font color = "red"><B>E2F-1</B></font> can also <font color =
"blue"><B>induce</B></font> <font color = "green"><B>p73</B></font> via a
p53-independent apoptotic pathway.
希望能去除所有的标签,而留下:
can also via a p53-independent apoptotic pathway.
这样的话,正规表示法应该如何表示才对?
感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.228.78.92
1F:推 Andor:1 while (s{<(\w+).*?>.*?</\1>}{}g); you may need /s 08/19 10:43
2F:→ Andor:then tr/ //s; 08/19 11:04