Post Reply 
$TSTing positional vars
Oct. 21, 2010, 09:29 PM
Post: #9
RE: $TSTing positional vars
Agreed but I guessed otherwise for variables.

From help
SRL Wrote:The value a variable is set to isn't "expanded" until it's actually called in the replacement text. This means if \1 is "fish" and you use a SET command like $SET(\2=\1 food), the \2 will not become "fish food" but will be literally set to "\1 food". However this will be expanded to "fish food" when \2 is printed in the replacement section.

Regardless,

Code:
[Patterns]
Name = "Test3"
Active = FALSE
Limit = 256
Match = "go\0ogle$TST((\0)=\1)"
Replace = "**\1**"

Doesn't match google.
Does match gostuffhereogle but doesn't fill \1.
$TST((\0)=*) would provide a test for value, however.

Best advice is 'If rearranging isn't possible, use (|\X).'
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: