Post Reply 
How to halt the match after the first instance
Aug. 10, 2019, 04:52 AM (This post was last modified: Aug. 10, 2019 04:54 AM by JJoe.)
Post: #4
RE: How to halt the match after the first instance
(Aug. 10, 2019 02:10 AM)zoltan Wrote:  This...isn't matching anything.

Works for me. Perhaps an error registering the list?

Regardless I see two problems.
1. Your filter will remove 'jason' AND 'jason lee'.
2. Using a wildcard before calling a list slows things down.

Start with something like:
(Add C-blocklist.txt to Proxomitron's 'Lists' folder and merge Blocklists and Patterns code from clipboard)
Code:
[Blocklists]
List.C-blocklist = "..\Lists\C-blocklist.txt"

[Patterns]
Name = "block with list"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<li class="user">*</div> </li> "
Limit = 2100
Match = "*title=$AV($LST(C-blocklist))*"

So, the filter only calls the list after it finds 'title='.
Then, a list entry must consume the title attribute for the filter to match.

C-blocklist.txt contains:

Code:
jason
julia
jeff

This list format should be quicker than (jason|julia|jeff|etc).
But, if the list also contains 'j', the Proxomitron may find a list match with 'j', return to the expression, fail to consume the attribute (if jason, julia, or jeff) and stop looking.
So, you will need to make the entries unambiguous or force their order.

Code:
j(^?)
jason
julia
jeff

or

Code:
jason|julia|jeff|j


Tip: Save the cfg to another name so you can 'go back' easily.
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to JJoe for this post:
zoltan
Post Reply 


Messages In This Thread
RE: How to halt the match after the first instance - JJoe - Aug. 10, 2019 04:52 AM

Forum Jump: