Post Reply 
$TSTing positional vars
Feb. 04, 2009, 02:18 PM
Post: #2
RE: $TSTing positional vars
Thanks whenever.

I've split this post, because i'd like to explain what's happening here, because you don't get any hints from the "dbug.." view. It's an undocumented Prox quirk:

Empty positional vars temporarily aren't empty but contain the maximum bytes possible, until the respective positional var knows that it is supposed to be empty. That doesn't matter, unless you $TST the respective var.

Test filter:
Code:
[Patterns]
Name = "New HTML filter"
Active = FALSE
Bounds = "<test>*</test>"
Limit = 256
Match = "*111\0222*"
        "&$TST(\0=\1)"
Replace = "\1"

Test code 1 (things go wrong -- \0 has nothing real to grab):
Code:
<test>xxx111222xxx</test>

Test code 2 (thing work as expected -- \0 has a whitespace to grab):
Code:
<test>xxx111 222xxx</test>


As for the Google untangler, if you change "\sonmousedown" to "onmousedown", then \7 can grab a space. Smile!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
$TSTing positional vars - whenever - Feb. 04, 2009, 11:10 AM
RE: $TSTing positional vars - sidki3003 - Feb. 04, 2009 02:18 PM
RE: $TSTing positional vars - whenever - Feb. 05, 2009, 05:06 AM
RE: $TSTing positional vars - sidki3003 - Feb. 05, 2009, 01:43 PM
RE: $TSTing positional vars - JJoe - Oct. 21, 2010, 02:19 AM
RE: $TSTing positional vars - sidki3003 - Oct. 21, 2010, 03:13 PM
RE: $TSTing positional vars - JJoe - Oct. 21, 2010, 06:03 PM
RE: $TSTing positional vars - sidki3003 - Oct. 21, 2010, 06:45 PM
RE: $TSTing positional vars - JJoe - Oct. 21, 2010, 09:29 PM
RE: $TSTing positional vars - sidki3003 - Oct. 22, 2010, 10:12 PM
RE: $TSTing positional vars - JJoe - Oct. 22, 2010, 11:40 PM
RE: $TSTing positional vars - whenever - Oct. 10, 2011, 03:51 AM

Forum Jump: