Post Reply 
More than one match/replace per filter?
Sep. 14, 2011, 07:41 AM
Post: #8
RE: More than one match/replace per filter?
Great. Now the spaces are preserved and it matches after parentheses. Thanks. I actually combined your last 2 suggestions to cover as much as possible (\r|\n|\s|>|\(|\))\2([a-z]&$LST(Trans))

Not to open another can of worms, but I found something that addresses the tag issue. It's a thread from 3 years ago that I've been trying to find. It's for changing a single word per filter, so not the same situation, but the tag issue was solved. Updated to the current example, it would look like this:

Code:
URL = "$TYPE(htm)"
Match = "(<$SET(open=1)|>$SET(open=))PrxNeverMatch"
        "|"
        "([^a-z0-9])\2"
        "zwei"
        "("
        "(s|)"
        "(\s|<|[^a-z0-9])"
        ")\1"
        "(^$TST(open=1))"
Replace = "\2one\1"

It's hard to tell - it may be inferior in some ways to the current one, but an addition is using PrxNeverMatch to cancel out matching (within a tag) for the duration that a variable is set to 1.
Hard to believe I somewhat understood it 3 yrs ago and totally forgot it.
Now using this with a list is a different matter, but it seems like it could be done.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: More than one match/replace per filter? - zoltan - Sep. 14, 2011 07:41 AM

Forum Jump: