Regular Expressions 101

Community Patterns

Match script tag attribute and content except specific type

0

Regular Expression
ECMAScript (JavaScript)

/
<script(\s*type="(text\/javascript)")?>(.*?)<\/script>
/
g

Description

Match script tag attribute and content except specific type

Submitted by anonymous - 6 years ago