I thought I could implement it here, but wouldn't be better eq.match() itself returns the required values, irrespective of the eq?