Replaces the first occurrence of a pattern matching a Java-style regular expression in a string with the specified replacement string.
Parameter 1 - the string to search and replace in.
Parameter 2 - a string containing the regular expression to search for.
Parameter 3 - the replacement string, for the first match found for the regular expression.
Returns: the resulting string with the first match for the regular expression replaced with the replacement string.