Finds all CashAssembly evaluations embedded in a larger string.
An evaluation looks like $(...), for example $(<fee>) or $(<a> <b>). This pattern
locates every occurrence in the input and returns them all (global flag g).
Empty evaluations $() are intentionally excluded because they reference no variables.
For example, scanning "OP_DUP <$(<pubkeyHash>)> OP_HASH160 $(<fee>)" would return
['$(<pubkeyHash>)', '$(<fee>)'].
Finds all CashAssembly evaluations embedded in a larger string.
An evaluation looks like
$(...), for example$(<fee>)or$(<a> <b>). This pattern locates every occurrence in the input and returns them all (global flagg). Empty evaluations$()are intentionally excluded because they reference no variables.For example, scanning
"OP_DUP <$(<pubkeyHash>)> OP_HASH160 $(<fee>)"would return['$(<pubkeyHash>)', '$(<fee>)'].