in reply to Pattern matching with a variable

Thanks JediWizard and ikegami, I will give it a go tonight.