Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
<script.*?>([\s\S]*?)<\/script>
/
g
Input 1
1
New
<script type="text/javacript">alert("First one!");</script> <script>console.log("Hello World");</script> <script type="text/javascript"> (function () { var _tsid = 'XFE5AF4B9ADDACA0E60017B1BC4D16AE2'; _tsConfig = { 'yOffset': '0', /* offset from page bottom */ 'variant': 'reviews', /* reviews, default, custom, custom_reviews */ 'customElementId': '', /* required for variants custom and custom_reviews */ 'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */ 'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */ 'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */ 'disableResponsive': 'false', /* deactivate responsive behaviour */ 'disableTrustbadge': 'false', /* deactivate Trustbadge® */ 'responsive': { 'variant': '', /* floating, custom */ 'customElementId': '' /* required for variant custom */ } }; var _ts = document.createElement('script'); _ts.type = 'text/javascript'; _ts.charset = 'utf-8'; _ts.async = true; _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js'; var __ts = document.getElementsByTagName('script')[0]; __ts.parentNode.insertBefore(_ts, __ts); })(); </script>
Extraction
<script type="text/javacript">alert("First one!");</script> <script>console.log("Hello World");</script> <script type="text/javascript"> (function () { var _tsid = 'XFE5AF4B9ADDACA0E60017B1BC4D16AE2'; _tsConfig = { 'yOffset': '0', /* offset from page bottom */ 'variant': 'reviews', /* reviews, default, custom, custom_reviews */ 'customElementId': '', /* required for variants custom and custom_reviews */ 'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */ 'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */ 'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */ 'disableResponsive': 'false', /* deactivate responsive behaviour */ 'disableTrustbadge': 'false', /* deactivate Trustbadge® */ 'responsive': { 'variant': '', /* floating, custom */ 'customElementId': '' /* required for variant custom */ } }; var _ts = document.createElement('script'); _ts.type = 'text/javascript'; _ts.charset = 'utf-8'; _ts.async = true; _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js'; var __ts = document.getElementsByTagName('script')[0]; __ts.parentNode.insertBefore(_ts, __ts); })(); </script>