expand_wildcards function

Expand c-squares with wildcards to all matching c-squares