You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to strip all HTML comments from the output using this regex: (?=<!--)(?:[\s\S]*?-->)
It works fine for single line comments, however for multiline comments it doesn't. For example this one:
<!-- some text
another text -->
I have tried using this expression: (?=<!--)(?:[\s\S\n\r]*?-->) - didn't work either. Am I missing something?
My directive: subs_filter (?=<!--)(?:[\s\S]*?-->) "" gr;
The text was updated successfully, but these errors were encountered:
I'm trying to strip all HTML comments from the output using this regex:
(?=<!--)(?:[\s\S]*?-->)
It works fine for single line comments, however for multiline comments it doesn't. For example this one:
I have tried using this expression:
(?=<!--)(?:[\s\S\n\r]*?-->)
- didn't work either. Am I missing something?My directive:
subs_filter (?=<!--)(?:[\s\S]*?-->) "" gr;
The text was updated successfully, but these errors were encountered: