In my java application, we are using existing regex as below:
Regex = </*|[^\w\p{L} !#$%&'+,./:=?@|-]|&#|^'|'$|\W'|'[^\w\s]|script:
The above regex removes the character from script tag i.e. <>() but I want to remove the whole script tag along with word "script".
Input String:
<script>alert("asdf")</script>
Output String :
scriptalertasdfscript
Expected Output String :
blank
Please help.