|
Some Questions About Link Filters
In trying to filter links on a site, I ran into a couple of issues with version 9b:
First, the easy one. I have an "exclude" filter to get rid of one link on the page and a "rewrite" filter for all of the others. The rewrite works perfectly. While working out the exact form of the "exclude" filter, I accidentally created one that would not match the other links as they are on the page but would match them after they were rewritten. That excluded everything. Is that the intended behavior? Does the order of the filters matter? I had the exclude first in the list, followed by the rewrite.
Second, in working on the exclude, I initially used the regular expression:
.*page=1
which matches only the unwanted link. It failed to work; that is, the link was left in the document. I eventually tried:
.*listings\.asp.*
which did work. Is there something wrong with the syntax of the first expression? It seems to me that should have been fine. This was the only link on the page that ended with "page=1".
|