I'm trying to create a script which should remove some text from a file with node.js.
I have this file:
bla bla
bla bla
<script>
this text should be
removed.
export default {
some stuff here
}
</script>
I just want to remove all the text between <script> and export default {.
Note: I want to keep both <script> and export default }
export default {will be always there?