I have a string in this format:
<!--Start 498-->
some stuff here
<!--End 498-->
<!--Start 498-->
some more stuff here
<!--End 499-->
and so on.
How can I split this string to remove the content between a certain block of <!--Start xx-> and <!--End xx-->?
For example, if I wanted to remove the text between <!--Start 500--> and <!-- End 500-->, how would I remove it?
Edit: What regexp can I use to replace these? I’m hopeless with Regexps 🙁
I’d use String.replace with a regular expression to match the blocks and replace with an empty string
Something like
would do the trick