Post Reply 
$TSTing positional vars
Oct. 21, 2010, 06:45 PM
Post: #8
RE: $TSTing positional vars
(Oct. 21, 2010 06:03 PM)JJoe Wrote:  
Code:
[Patterns]
Name = "Test1"
Active = TRUE
Limit = 256
Match = "go\0ogle$TST(\0=\1)"
Replace = "go\1**\1"

Test1 doesn't match every "google". **ogle is not where it might be expected to be (search the page).

Yeah, same effect as with the "C" filter in your last post: \0 is filled with a whole lot of chars, more than 256 (byte limit) anyway. See post #2.


Quote:
Code:
[Patterns]
Name = "Test2"
Active = TRUE
Limit = 256
Match = "go\0$SET(\1=\0)ogle$TST(\1=\2)"
Replace = "\2"

Doesn't match...

That's the 6a case (new 1-11 numbering):
Techniques.txt Wrote:6a You can't test a positional variable that has been previously assigned with
$SET(), unless you expand it immediately.

Examples:
$SET(0=foo)$TST(\0=foo) test fails
$SET(0=foo)$TST((\0)=foo) test succeeds
$SET(1=foo)$SET(2=bar)$TST((\1\2)=foobar) test succeeds
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: