-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove multi-line block/content #17
Comments
I have got the exact same problem. Tried so far |
I just discovered this issue as well. I think that it works on a line-by-line basis much like apache's mod_substitute. I don't know much about the internals of nginx, but I'm guessing it's definition of "line" in a response body of html payload is similar to a "line" in unix, in that it's terminated by a '\0' null byte or something similar. I think the real answer is, if you're needing something as complicated as parsing html via complex regex (always a bad idea to be honest), or multi-line substitutions, it should probably be handled upstream (in the application), unfortunately. Correct me if I'm wrong on this @yaoweibin |
would be great if a multi-line expression could be supported, subs_filter 'content in firstline.*content in a following line' 'replacement' rm where "rm" could also be another value like "m" to indicate that regular expression with multi-line support should be used instead of standard regular expression engine configured for line-by-line |
I successfully removed a html tag with any content with:
|
Hi,
can be use subs_filter, remove a block that contains specified tex?
eg remove the block DIV that contains tex "Hello world"?
if the unit is in a line that is easy to remove,
but if more lines, and there are gaps in them, then I can not remove the entire unit
help please
The text was updated successfully, but these errors were encountered: