假如html标签里面有一句:String a = "<style type="text/css"> div " + "{ margin: 0; padding: 0; outline: 0; }</style>";我如何把这一句取出来呢,包括标签。用正则表达式:
<style([\s\S]*)</style>转载请标明出处: https://www.cnblogs.com/tangZH/p/10491883.html更多精彩文章: http://77blogs.com/?p=305