Test whether the string has at least one match by pattern.
string
pattern
true if at least one match, false if no match
the regexp
the string to test