I\'ve checked other answers but can\'t seem to do the following. Please help someone :)
I want to remove everything in between and including specific html comments>
That regex looks fine. Use an m modifier to make the dot match newlines:
m
"/.*?/m"
Alternatively, you could use [\s\S] as a substitute:
[\s\S]
"/[\s\S]*?/"