【转】过滤HTML标签的正则表达式

String regEx_html = "<[^>]+>"; // 定义HTML标签的正则表达式

String regEx_script = "<[\s]*?script[^>]*?>[\s\S]*?<[\s]*?\/[\s]*?script[\s]*?>"; // 定义script的正则表达式{或<script[^>]*?>[\s\S]*?<\/script>

 

posted @ 2014-10-11 10:03  qiuchmetal  阅读(118)  评论(0)    收藏  举报