`RegEx Filter` feature does not seem to work
Monitors a number of web pages for changes.
Brought to you by:
mortenmacfly
The promising RegEx Filter feature does not seem to work (created via the Setup ignore/replace definition dialog box).
No matter what I specify for the filter, it never matches. The log shows the match is being attempted, but the filter always fails to match anything. I've tried the most basic regex filters possible (even simple test filters like \d\.\d, ., and .*), but even they never match content they should be matching.
WCM 24.02 on Linux Mint Cinnamon 21.3
You have to be careful with this one: It is intended to operate line-by-line and only if the group is active. Otherwise, it will filter out everything easily and you end up with a empty content.
If you look here:
https://sourceforge.net/p/webchangemon/forum/tips_tricks/thread/9a24e5d045/#37e7
...it can be successfully applied.
Do you have an example of a webpage where you believe it does not work - and what are yo trying to filter?
Thanks. I'm planning on taking another look at this to see what's going on.
I'm still looking into this. I've had some unusual results, and part of the issue may revolve around: https://sourceforge.net/p/webchangemon/forum/general_help/thread/d7d8f2c21d/
Question: Is WCM supposed to return the entire line when such a filter matches, or only the filtered string(s)?
It is supposed to keep the entire line. This is a"positive" filtering. I.e. "Keep what I look at and remove everything else". Maybe an option to do the opposite would be a nice additional filter.
...which is implemented now in SVN.