Check a string against a pattern for partial and complete matches using a sub-set of RegExp