Added the match() function to match regex expressions.