//var %r, %e = $regsub(moo,/o/g, \$, %r) | echo -a %e %r

The '\' will escape the $.

$regsub(moo,/o/g, \ $+ $chr(36), %r) also works.

Eamonn.