Allow with option to accept string or regular expression

Had a need on a client project for partial pattern matching an attribute on a node.  Current implementation requires a full match.  /cc @albus522