需求
取出下列html标签中的css标签
<meta content='Flat administration template for Twitter Bootstrap.' name='description'>
<link href="assets/stylesheets/bootstrap/bootstrap.css" media="all" rel="stylesheet" type="text/css" />
<link href="assets/stylesheets/bootstrap/bootstrap-responsive.css" media="all" rel="stylesheet" type="text/css" />
<script src="assets/javascripts/plugins/fileupload/tmpl.min.js" type="text/javascript"></script>
<script src="assets/javascripts/plugins/fileupload/load-image.min.js" type="text/javascript"></script>
解决
正则 :
<\/?\w+(?!.*\.css).*?\/?>