Mediator pattern machine featuring wildcard matching, globstar matching, and regular expression pattern matching