Function matches( str, regex )

Description:
Tests whether a string matches a given regular expression.
Parameters:
str (String)
string to test
regex (String)
regular expression string
Return Value (boolean):
true if regex matches str anywhere
Example:
matches("Hubble", "ub") = true
Signature:
boolean matches(String, String)