Allows to add multiple patterns to a grepl operation. These multiple patterns are then tested against other strings. This function is based on the base grepl operator

multigrepl(mypatterns, x)

Arguments

mypatterns

string(s); list of multiple input strings

x

string(s); list of multiple target patterns