PTT
Submit
Submit
選擇語言
正體中文
简体中文
PTT
java
[問題] 取代掉HTML內的script區段
作者:
sephiorth
(看似飛翔卻在墜落)
2014-04-10 14:32:12
Hi 小弟有個string內容如下
<html>
...
<script>
...
</script>
...
<html>
希望取代後能變成
<html>
...
...
<html>
有嘗試操作
content = content.replaceAll("(?m)<script[^>]*>.*</script*>", "");
請問要如何取代<script>...</script>區段的字?
作者: pzyc79
2014-04-10 17:49:00
content = content.replaceAll("<script>.*?</script>","")
繼續閱讀
Re: [問題] 請問有人在玩GWT-BootStrap的嗎
BignoZe
Re: [問題] 請問有人在玩GWT-BootStrap的嗎
PsMonkey
[問題] 請問有人在玩GWT-BootStrap的嗎
BignoZe
[問題] SCJP 泛型問題求教
skipeco
[問題] InvocationHandler作用?
kingdeath
Re: [問題] 觀察JAVA耗費資源的方法?
mozzan
[蠢念頭] 四月底前統統免費!
PsMonkey
Re: [工具] Google Cloud Platform 亞太區發表會
PsMonkey
[問題] 請問在JUnit之前的testing framework?
NewSpec
[工具] Google Cloud Platform 亞太區發表會
hsnu114444
Links
booklink
Contact Us: admin [ a t ] ucptt.com