containsPattern string validator to find regex pattern within a string