Performs a regular expression search for a Java-style regular expression inside a string.
If matches are found, the first matching string (a substring of the first string) is returned, otherwise null is returned.
Parameter 1 - the string to search in.
Parameter 2 - a string containing the regular expression to be searched for.
Returns: the matching substring found, or null.