I have some string with html tags.
var str = '<a href="www.com">text</a>
<script>
//some code etc
</script>
............... etc
';
I need to remove <script>....</script> using regexp with js's replace() function. Could not figure how to do it.
My efforts were:
/(<script).(</script>)/m
/<script.*>([\s\S]*)</script>/m
/(<script)*(</script>)/
/<script*</script>/
no success =(