Post Reply 
How to test a variable against another variable?
Oct. 11, 2008, 10:13 AM
Post: #13
RE: How to test a variable against another variable?
whenever Wrote:I learned another trick about $TST() at Castlecops, maybe you are interested in it too.

At first glance, the castlecops $TST looks a bit odd.

Basically it's just this:
Code:
$TST(VariableName=Matching expression)
$TST(VariableName=*)
...
$TST(keyword=*)
$TST(keyword=\1)

Both the * and \1 match the current value of the VariableName.
The \1 has the added bonus of saving that value.
You can do this wherever you can use $TST().

BTW, personally, I would put the \s back into your filters Bounds expression.
Code:
Bounds = "<a\s*</a>"
It's a bit safer.

Perhaps you should post your filter in Website Customization when your done with it.
More people will probably see it there. Smile!

z12
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to test a variable against another variable? - z12 - Oct. 11, 2008 10:13 AM

Forum Jump: