Is it possible to test an expansion and compare against a regular expression, or to allow wild cards?