Below regex is not working in IE alone to remove the script tag from url:
Regex Pattern
(/(%3C*|<)[^*]?script(%3E)[a-zA-Z0-9]*/gi, '')
code:
var testEx= http://tv/header:1<script>as</script>;
testEX = testEx.replace(/(%3C*|<)[^*]?script(%3E)[a-zA-Z0-9]*/gi, '');
console.log(testEx);
Expected Output:
tv/header:1
Can you suggest the solution for this?