- allow patterns to be regexs