Support wildcard and regex