Added support for the return of a value from the match() function