I am having trouble selecting the opposite of what i previously selected
String:
<!-- Button --><div><button></div><!-- Input --><input type="text">
I managed to select the comments by using:
/<!--[\s\w]*-->/
Now I want to select everything but the comments. Desired output
<div><button></div> and <input type="text">
My question is what would the Regex search string be in order to select the previously mentioned output ?