Report question

Question: shell matching a pattern using a case-statement which is stored inside a variable