php
PHP - script 태그 추출하는 정규표현식
"<script language="javascript"> alert("hello"); </script>"는 매치되나 "<style> .body </style>"와 같은 태그는 매치되지 않습니다.
<script[\\.|\\W|\\w]*?</script>
출처: http://www.regexlib.com/REDetails.aspx?regexp_id=2585
0 댓글