The RHS rewrites by substitution. Wildcard operators in the LHS select the portions of the workspace to be passed to the RHS. The first wildcard is assigned to $1, the second to $2, and so on. Consider:
Here, an Internet address is rewritten in UUCP form. Note that there are only nine such positional operators, and that $0 is illegal.