· Right On Tech · Technical Guides
How to Replace Entire Script or Style Wrapped with Regex in Notepad++


Simply use replace while regex enabled.
Using the regex syntax:
<script\b[^>]*>.*?</script>
It can be used with different wrappers such as style. Same idea applies to pesky font-face style sheet:
@font-face\s*\{[^}]*\}


