This should probably work for you (though you may need to tweak it for your own use):
alias blahtest {
var %text = $eval($one $two $five $four $three $six $nine $eight $seven $ten just a little $blah test for you to $blah see,0) , %i = 1
if ($regex(testname,%text,/(\$[^ ]+)/g)) {
while ($regml(testname,%i)) {
echo -stg $v1 | inc %i
}
}
}
If the lines really contain a bunch of .......'s
You would have to use: if ($regex(testname,%text,/(\$[^\.]+)/g)) {