refactor wildcard/regex support, update docs