This adds tests for the regex/glob style behavior that was added in 045490de25 but not documented until #10062.
045490de25