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|link|a|img)(?:\s*$\w+(?:\s*=\s*[\"'][^\"']*[\"'])?)*\s*(?:src|href|data)=[\"'])(?![\"']?(?:data:|#))([^'\"]+)([\"'][^>]*>)
/
g
Input 1
New
if(!Function.prototype.bind){Function.prototype.bind=function(a){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var f=Array.prototype.slice.call(arguments,1),e=this,b=function(){},c=function(){return e.apply(this instanceof b&&a?this:a,f.concat(Array.prototype.slice.call(arguments)))};b.prototype=this.prototype;c.prototype=new b();return c}}if(!Array.prototype.map){Array.prototype.map=function(c){if(this===void 0||this===null){throw new TypeError()}var g=Object(this),a=g.length>>>0;if(typeof c!=="function"){throw new TypeError()}var f=new Array(a),b=arguments.length>=2?arguments[1]:void 0;for(var e=0;e<a;e++){if(e in g){f[e]=c.call(b,g[e],e,g)}}return f}}if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}if(!Object.prototype.hasOwnProperty){Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||this[
Substitution
if(!Function.prototype.bind){Function.prototype.bind=function(a){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var f=Array.prototype.slice.call(arguments,1),e=this,b=function(){},c=function(){return e.apply(this instanceof b&&a?this:a,f.concat(Array.prototype.slice.call(arguments)))};b.prototype=this.prototype;c.prototype=new b();return c}}if(!Array.prototype.map){Array.prototype.map=function(c){if(this===void 0||this===null){throw new TypeError()}var g=Object(this),a=g.length>>>0;if(typeof c!=="function"){throw new TypeError()}var f=new Array(a),b=arguments.length>=2?arguments[1]:void 0;for(var e=0;e<a;e++){if(e in g){f[e]=c.call(b,g[e],e,g)}}return f}}if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}if(!Object.prototype.hasOwnProperty){Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||this[