regex match() fix